Adium

Changeset 22796

Show
Ignore:
Timestamp:
03/04/2008 07:41:58 AM (9 months ago)
Author:
boredzo
Message:

Added a new test case: sending representedColor to a string of four commas. This test passes (-representedColor correctly returns nil).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/UnitTests/TestColorAdditions.h

    r22793 r22796  
    140140- (void)testRepresentedColorWithTwoCommas; 
    141141- (void)testRepresentedColorWithThreeCommas; 
     142- (void)testRepresentedColorWithFourCommas; 
    142143 
    143144#pragma mark -representedColorWithAlpha: 
  • trunk/UnitTests/TestColorAdditions.m

    r22793 r22796  
    725725        STAssertEquals(noColor, (NSColor *)nil, @"Color represented by three commas should be nil"); 
    726726} 
     727- (void)testRepresentedColorWithFourCommas 
     728{ 
     729        NSColor *noColor = [@",,,," representedColor]; 
     730        STAssertEquals(noColor, (NSColor *)nil, @"Color represented by four commas should be nil"); 
     731} 
    727732 
    728733#pragma mark -representedColorWithAlpha: