gnustep-dev
[Top][All Lists]
Advanced

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

Re: [NSDecimalNumber numberWithDouble:x]


From: Adam Fedor
Subject: Re: [NSDecimalNumber numberWithDouble:x]
Date: Mon, 12 Jan 2004 11:06:31 -0700


On Monday, January 12, 2004, at 10:53 AM, David Ayers wrote:

Hmm.. we may not really need to test against the concrete classes in the numberWith*: methods as long as we never use them internally and as long as we don't care about code that gets the classes via NSClassFromString and class those methods. I'd say it's an edge case. (But I haven't tested what could go wrong.)

I think you only need to test the concrete class.

I'm pretty sure the implementations in NSNumber must test for the *abstract* NSNumber class (and should/could arguably also test the concrete class corresponding to the type supplied).



Oops. Sorry, that's what I meant to say (abstract, NOT concrete).





reply via email to

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