[Biococoa-dev] test question

Koen van der Drift kvddrift at earthlink.net
Sun Sep 24 21:01:20 EDT 2006


On Sep 24, 2006, at 8:46 PM, Scott Christley wrote:

> I traced this down (pain to debug with the test framework but  
> anyways) to the sequenceString method in BCSequence.m
>
>
>
> - (NSString*)sequenceString
> {
> 	unsigned int length = [self length];
> 	
> 	if ( length )
> 		return [self subSequenceStringInRange: NSMakeRange( 0, length ) ];
> 	else
> 		return nil;
> }
>
>
>
> So I think it should return the empty string if length == 0, not  
> nil.  Sound right?  That fixes the test but wanted to check if that  
> is desired behavior.
>


Yep - that's correct. You can commit the change - do you already have  
access? Otherwise I will do it.


Thanks for finding the bug.


- Koen.




More information about the Biococoa-dev mailing list