gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Archiving tests...


From: Fred Kiefer
Subject: Re: Archiving tests...
Date: Sat, 23 Mar 2013 15:12:05 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4

On 23.03.2013 07:09, Richard Frith-Macdonald wrote:

On 22 Mar 2013, at 19:58, Gregory Casamento wrote:

Richard,

I think putting tests in GUI for archiving is important since the point is not 
so much to test the archiver itself but that the GUI classes are, indeed, 
archiving themselves in a way which is universal for all platforms.

Sure ... my point was simply that we already have them built in to the test 
framework itsself ... so the GUI testsuite should use the functionality we 
already have.

The current coding testing functions test whether the decoded object is the 
same as the original object by calling -isEqual:
For classes where the standard equlity test isn't enough we can implement 
-isEqualAfterCoding: in a category on the class.

Of course, no standardised test code can possibly cope with all situations, but 
I'd recommend you start by calling test_NSCoding() and test_keyed_NSCoding() 
for all the GUI classes, then think about how things might be extended to 
handle any special cases.

Thank you for providing this new method. I used to override the isEqual: method for the current gui coding tests, but will switch to the new method now.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]