82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
[array[0] count] == 5 &&
!memcmp([array[0] cArray], "abcde", 5))
TEST(@"-[removeNItems:atIndex:]",
[array[0] removeNItems: 2
atIndex: 1] && [array[0] count] == 3 &&
!memcmp([array[0] cArray], "ade", 3))
[array[0] addItem: ""];
TEST(@"Building strings",
(array[0] = [class dataArrayWithItemSize: 1]) &&
[array[0] addNItems: 6
fromCArray: (void*)str] && [array[0] addItem: ""] &&
!strcmp([array[0] cArray], str))
|
>
>
|
>
>
>
|
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
[array[0] count] == 5 &&
!memcmp([array[0] cArray], "abcde", 5))
TEST(@"-[removeNItems:atIndex:]",
[array[0] removeNItems: 2
atIndex: 1] && [array[0] count] == 3 &&
!memcmp([array[0] cArray], "ade", 3))
TEST(@"-[addNItems:atIndex:]",
[array[0] addNItems: 2
fromCArray: "bc"
atIndex: 1] && [array[0] count] == 5 &&
!memcmp([array[0] cArray], "abcde", 5))
TEST(@"Building strings",
(array[0] = [class dataArrayWithItemSize: 1]) &&
[array[0] addNItems: 6
fromCArray: (void*)str] && [array[0] addItem: ""] &&
!strcmp([array[0] cArray], str))
|