Hi. I am developing a appication that uses a sqlite database. I want to test my methods but i have a question. I am testing it with a example os dtabase that i found on internet about animal and photographs. The problem is when i am comparing two Animals' name the STassertEquals test the number value of the pointers.
Anyone has an example project of testing sqlite methods I am desperate please help me.
Code:
Animal *s=[Animal getAnimal:name];
Animal *g=[Animal getAnimal:name];
the two animal have the same name and now i wan to test if the sqlite methods works fine:
STassertEquals(s.nombre,g.nombre,@"FAILURE");
I was developing applications in Java's Junit and i dont know if this is possible in Objective C OcunitTest.