Lines Matching refs:equal

58 #define equal(a, b)  funcqual(a,b,__LINE__);  macro
97 equal(one, "abcd"); /* Basic test. */ in test_string()
100 equal(one, "x"); /* Writeover. */ in test_string()
101 equal(one+2, "cd"); /* Wrote too much? */ in test_string()
105 equal(one, "hi there"); /* Basic test encore. */ in test_string()
106 equal(two, "hi there"); /* Stomped on source? */ in test_string()
109 equal(one, ""); /* Boundary condition. */ in test_string()
115 equal(one, "ijklmn"); /* Basic test. */ in test_string()
119 equal(one, "xyz"); /* Writeover. */ in test_string()
120 equal(one+4, "mn"); /* Wrote too much? */ in test_string()
125 equal(one, "ghef"); /* Basic test encore. */ in test_string()
126 equal(two, "ef"); /* Stomped on source? */ in test_string()
130 equal(one, ""); /* Boundary conditions. */ in test_string()
133 equal(one, "ab"); in test_string()
136 equal(one, "cd"); in test_string()
143 equal(one, "ijklmn"); /* Basic test. */ in test_string()
147 equal(one, "xyz"); /* Writeover. */ in test_string()
148 equal(one+4, "mn"); /* Wrote too much? */ in test_string()
153 equal(one, "ghef"); /* Basic test encore. */ in test_string()
154 equal(two, "ef"); /* Stomped on source? */ in test_string()
158 equal(one, ""); /* Boundary conditions. */ in test_string()
161 equal(one, "ab"); in test_string()
164 equal(one, "cd"); in test_string()
168 equal(one, "abcd"); /* Count-limited. */ in test_string()
171 equal(one, "abcd"); /* Zero count. */ in test_string()
174 equal(one, "abcdgh"); /* Count, length equal. */ in test_string()
192 equal(one, "abc"); /* Did the copy go right? */ in test_string()
196 equal(one, "xycdefgh"); /* Copy cut by count. */ in test_string()
200 equal(one, "xyzdefgh"); in test_string()
204 equal(one, "xyz"); in test_string()
205 equal(one+4, "efgh"); /* Wrote too much? */ in test_string()
209 equal(one, "xyz"); in test_string()
210 equal(one+4, ""); in test_string()
211 equal(one+5, "fgh"); in test_string()
215 equal(one, "abc"); in test_string()
218 equal(one, ""); in test_string()
219 equal(one+1, ""); in test_string()
220 equal(one+2, "c"); in test_string()
224 equal(two, "hi there"); /* Just paranoia. */ in test_string()
225 equal(one, "hi there"); /* Stomped on source? */ in test_string()
348 equal(strtok(one, ", "), "first"); /* Basic test. */ in test_string()
349 equal(one, "first"); in test_string()
350 equal(strtok((char *)NULL, ", "), "second"); in test_string()
351 equal(strtok((char *)NULL, ", "), "third"); in test_string()
354 equal(strtok(one, ", "), "first"); /* Extra delims, 1 tok. */ in test_string()
357 equal(strtok(one, ", "), "1a"); /* Changing delim lists. */ in test_string()
358 equal(strtok((char *)NULL, "; "), "1b"); in test_string()
359 equal(strtok((char *)NULL, ", "), "2a"); in test_string()
361 equal(strtok(two, "-"), "x"); /* New string before done. */ in test_string()
362 equal(strtok((char *)NULL, "-"), "y"); in test_string()
365 equal(strtok(one, ", "), "a"); /* Different separators. */ in test_string()
366 equal(strtok((char *)NULL, ", "), "b"); in test_string()
367 equal(strtok((char *)NULL, " ,"), "c"); /* Permute list too. */ in test_string()
368 equal(strtok((char *)NULL, " ,"), "d"); in test_string()
376 equal(strtok(one, ", "), "abc"); /* No delimiters. */ in test_string()
379 equal(strtok(one, ""), "abc"); /* Empty delimiter list. */ in test_string()
383 equal(strtok(one, ","), "a"); /* Basics again... */ in test_string()
384 equal(strtok((char *)NULL, ","), "b"); in test_string()
385 equal(strtok((char *)NULL, ","), "c"); in test_string()
387 equal(one+6, "gh"); /* Stomped past end? */ in test_string()
388 equal(one, "a"); /* Stomped old tokens? */ in test_string()
389 equal(one+2, "b"); in test_string()
390 equal(one+4, "c"); in test_string()
426 equal(one, "abc"); /* Did the copy go right? */ in test_string()
430 equal(one, "axydefgh"); /* Basic test. */ in test_string()
434 equal(one, "abc"); /* Zero-length copy. */ in test_string()
439 equal(two, "hi there"); /* Just paranoia. */ in test_string()
440 equal(one, "hi there"); /* Stomped on source? */ in test_string()
445 equal(one, "abc"); /* Did the copy go right? */ in test_string()
449 equal(one, "axydefgh"); /* Basic test. */ in test_string()
453 equal(one, "abc"); /* Zero-length copy. */ in test_string()
458 equal(two, "hi there"); /* Just paranoia. */ in test_string()
459 equal(one, "hi there"); /* Stomped on source? */ in test_string()
463 equal(one, "aabcdefgh"); /* Overlap, right-to-left. */ in test_string()
467 equal(one, "acdefgh"); /* Overlap, left-to-right. */ in test_string()
471 equal(one, "abcdefgh"); /* 100% overlap. */ in test_string()
480 equal(one, "abc"); /* Did the copy go right? */ in test_string()
484 equal(one, "axydefgh"); /* Basic test. */ in test_string()
488 equal(one, "abc"); /* Zero-length copy. */ in test_string()
493 equal(two, "hi there"); /* Just paranoia. */ in test_string()
494 equal(one, "hi there"); /* Stomped on source? */ in test_string()
499 equal(one, "abcdefgh"); /* Source intact? */ in test_string()
500 equal(two, "abcdefeathers"); /* Copy correct? */ in test_string()
505 equal(two, "aumblebee"); in test_string()
507 equal(two, "abcdlebee"); in test_string()
510 equal(two, "xbcdlebee"); in test_string()
516 equal(one, "axxxefgh"); /* Basic test. */ in test_string()
519 equal(one, "axxxefgh"); /* Zero-length set. */ in test_string()
522 equal(one, "axxxe"); /* Zero fill. */ in test_string()
523 equal(one+6, "gh"); /*, the leftover. */ in test_string()
526 equal(one, "ax\045xe"); /* Unsigned char convert. */ in test_string()
532 equal(one, "abc"); /* Simple copy. */ in test_string()
536 equal(one, "axydefgh"); /* Basic test. */ in test_string()
540 equal(one, "abc"); /* Zero-length copy. */ in test_string()
545 equal(two, "hi there"); /* Just paranoia. */ in test_string()
546 equal(one, "hi there"); /* Stomped on source? */ in test_string()
552 equal(one, "ab"); /* Basic test. */ in test_string()
553 equal(one+3, ""); in test_string()
554 equal(one+4, "ef"); in test_string()
558 equal(one, "abcdef"); /* Zero-length copy. */ in test_string()
578 equal(strerror(errno), _sys_errlist[errno]); in test_string()