-
Notifications
You must be signed in to change notification settings - Fork 0
/
ClipTest.m
35 lines (28 loc) · 875 Bytes
/
ClipTest.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//
// ClipTest.m
// BitLy
//
// Created by Dmitry Krassovski on 20.04.09.
// Copyright 2009 Getalime. All rights reserved.
//
#import <SenTestingKit/SenTestingKit.h>
#import "Clip.h"
@interface ClipTest : SenTestCase {
}
@end
@implementation ClipTest
- (void)testGettingAndSettingData
{
Clip * clip = [[Clip alloc] init];
[clip setData:@"http://ya.ru"];
[clip getData];
STAssertEqualObjects([clip string_], @"http://ya.ru", @"blah");
}
- (void)testGettingAndSettingDataWithStrangeSymbols
{
Clip * clip = [[Clip alloc] init];
[clip setData:@"http://www.google.com/notebook/?nbid=CalhjUfC37Hs%2FBDRJPQgoQhq3Z_YAk#b=CalhjUfC37Hs%2FBDQok3goQvfTWxook"];
[clip getData];
STAssertEqualObjects([clip string_], @"http://www.google.com/notebook/?nbid=CalhjUfC37Hs%2FBDRJPQgoQhq3Z_YAk#b=CalhjUfC37Hs%2FBDQok3goQvfTWxook", @"blah");
}
@end