Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4b638db198
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 36 lines (28 sloc) 0.875 kb
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 34 35
//
// 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


Something went wrong with that request. Please try again.