Created
August 30, 2010 15:53
-
-
Save wookay/557592 to your computer and use it in GitHub Desktop.
Grid Notes Test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// TestGridConverter.m | |
// Hangul | |
// | |
// Created by Woo-Kyoung Noh on 28/08/10. | |
// Copyright 2010 factorcat. All rights reserved. | |
// | |
#import "TestGridConverter.h" | |
#import "GridConverter.h" | |
#import "NSArrayExt.h" | |
#import "NSStringExt.h" | |
#import "UnitTest.h" | |
@implementation TestGridConverter | |
-(void) test_converter { | |
NSString* expected_au = [_w(@"名銜을짓밟는軍用長靴.街衢를疾驅하는造花 金蓮. 위에서내려오고밑에서올라가고위에서내려오 고밑에서올라간사람은밑에서올라가지아니한 위에서내려오지아니한밑에서올라가지아니한 위에서내려오지아니한사람.") join:LF]; | |
assert_equal(expected_au, [GRIDCONVERTER convert_to_fixed_width_text:@"名銜을짓밟는軍用長靴. 街衢를疾驅하는造花金蓮.\n위에서내려오고밑에서올라가고위에서내려오고밑에서올라간사람은밑에서올라가지아니한위에서내려오지아니한밑에서올라가지아니한위에서내려오지아니한사람."]); | |
NSString* expected_one = [_w(@"01234567890123456789 01234567890") join:LF]; | |
assert_equal(expected_one, [GRIDCONVERTER convert_to_fixed_width_text:@"0123456789012345678901234567890"]); | |
NSString* expected_two = [_w(@"0123456789012 345678901234567890") join:LF]; | |
assert_equal(expected_two, [GRIDCONVERTER convert_to_fixed_width_text:@"0123456789012\n345678901234567890"]); | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[Session started at 2010-08-31 00:53:36 +0900.]
Started
...
Finished in 0.000726 seconds.
1 tests, 3 assertions, 0 failures, 0 errors