Changeset e7eb1f0
- Timestamp:
- Jan 4, 2024, 12:09:16 PM (12 months ago)
- Branches:
- master
- Children:
- ca2feff
- Parents:
- e0cc9e0
- Location:
- tests/collections
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/collections/.expect/string-compare.txt
re0cc9e0 re7eb1f0 1 1 ------- string ------- 2 ( cmp(s_, s_) == 0) ok2 (strcmp(s_, s_) == 0) ok 3 3 (s_ == s_) ok 4 4 !(s_ != s_) ok … … 7 7 (s_ <= s_) ok 8 8 !(s_ < s_) ok 9 ( cmp("", s_) == 0) ok9 (strcmp("", s_) == 0) ok 10 10 ("" == s_) ok 11 11 !("" != s_) ok … … 14 14 ("" <= s_) ok 15 15 !("" < s_) ok 16 ( cmp(s_, "") == 0) ok16 (strcmp(s_, "") == 0) ok 17 17 (s_ == "") ok 18 18 !(s_ != "") ok … … 21 21 (s_ <= "") ok 22 22 !(s_ < "") ok 23 ( cmp(s_, s_a) < 0) ok23 (strcmp(s_, s_a) < 0) ok 24 24 !(s_ == s_a) ok 25 25 (s_ != s_a) ok … … 28 28 (s_ <= s_a) ok 29 29 (s_ < s_a) ok 30 ( cmp("", s_a) < 0) ok30 (strcmp("", s_a) < 0) ok 31 31 !("" == s_a) ok 32 32 ("" != s_a) ok … … 35 35 ("" <= s_a) ok 36 36 ("" < s_a) ok 37 ( cmp(s_, "a") < 0) ok37 (strcmp(s_, "a") < 0) ok 38 38 !(s_ == "a") ok 39 39 (s_ != "a") ok … … 42 42 (s_ <= "a") ok 43 43 (s_ < "a") ok 44 ( cmp(s_a, s_) > 0) ok44 (strcmp(s_a, s_) > 0) ok 45 45 !(s_a == s_) ok 46 46 (s_a != s_) ok … … 49 49 !(s_a <= s_) ok 50 50 !(s_a < s_) ok 51 ( cmp("a", s_) > 0) ok51 (strcmp("a", s_) > 0) ok 52 52 !("a" == s_) ok 53 53 ("a" != s_) ok … … 56 56 !("a" <= s_) ok 57 57 !("a" < s_) ok 58 ( cmp(s_a, "") > 0) ok58 (strcmp(s_a, "") > 0) ok 59 59 !(s_a == "") ok 60 60 (s_a != "") ok … … 63 63 !(s_a <= "") ok 64 64 !(s_a < "") ok 65 ( cmp(s_, s_aa) < 0) ok65 (strcmp(s_, s_aa) < 0) ok 66 66 !(s_ == s_aa) ok 67 67 (s_ != s_aa) ok … … 70 70 (s_ <= s_aa) ok 71 71 (s_ < s_aa) ok 72 ( cmp("", s_aa) < 0) ok72 (strcmp("", s_aa) < 0) ok 73 73 !("" == s_aa) ok 74 74 ("" != s_aa) ok … … 77 77 ("" <= s_aa) ok 78 78 ("" < s_aa) ok 79 ( cmp(s_, "aa") < 0) ok79 (strcmp(s_, "aa") < 0) ok 80 80 !(s_ == "aa") ok 81 81 (s_ != "aa") ok … … 84 84 (s_ <= "aa") ok 85 85 (s_ < "aa") ok 86 ( cmp(s_aa, s_) > 0) ok86 (strcmp(s_aa, s_) > 0) ok 87 87 !(s_aa == s_) ok 88 88 (s_aa != s_) ok … … 91 91 !(s_aa <= s_) ok 92 92 !(s_aa < s_) ok 93 ( cmp("aa", s_) > 0) ok93 (strcmp("aa", s_) > 0) ok 94 94 !("aa" == s_) ok 95 95 ("aa" != s_) ok … … 98 98 !("aa" <= s_) ok 99 99 !("aa" < s_) ok 100 ( cmp(s_aa, "") > 0) ok100 (strcmp(s_aa, "") > 0) ok 101 101 !(s_aa == "") ok 102 102 (s_aa != "") ok … … 105 105 !(s_aa <= "") ok 106 106 !(s_aa < "") ok 107 ( cmp(s_a, s_aa) < 0) ok107 (strcmp(s_a, s_aa) < 0) ok 108 108 !(s_a == s_aa) ok 109 109 (s_a != s_aa) ok … … 112 112 (s_a <= s_aa) ok 113 113 (s_a < s_aa) ok 114 ( cmp("a", s_aa) < 0) ok114 (strcmp("a", s_aa) < 0) ok 115 115 !("a" == s_aa) ok 116 116 ("a" != s_aa) ok … … 119 119 ("a" <= s_aa) ok 120 120 ("a" < s_aa) ok 121 ( cmp(s_a, "aa") < 0) ok121 (strcmp(s_a, "aa") < 0) ok 122 122 !(s_a == "aa") ok 123 123 (s_a != "aa") ok … … 126 126 (s_a <= "aa") ok 127 127 (s_a < "aa") ok 128 ( cmp(s_aa, s_a) > 0) ok128 (strcmp(s_aa, s_a) > 0) ok 129 129 !(s_aa == s_a) ok 130 130 (s_aa != s_a) ok … … 133 133 !(s_aa <= s_a) ok 134 134 !(s_aa < s_a) ok 135 ( cmp("aa", s_a) > 0) ok135 (strcmp("aa", s_a) > 0) ok 136 136 !("aa" == s_a) ok 137 137 ("aa" != s_a) ok … … 140 140 !("aa" <= s_a) ok 141 141 !("aa" < s_a) ok 142 ( cmp(s_aa, "a") > 0) ok142 (strcmp(s_aa, "a") > 0) ok 143 143 !(s_aa == "a") ok 144 144 (s_aa != "a") ok … … 147 147 !(s_aa <= "a") ok 148 148 !(s_aa < "a") ok 149 ( cmp(s_a, s_a) == 0) ok149 (strcmp(s_a, s_a) == 0) ok 150 150 (s_a == s_a) ok 151 151 !(s_a != s_a) ok … … 154 154 (s_a <= s_a) ok 155 155 !(s_a < s_a) ok 156 ( cmp("a", s_a) == 0) ok156 (strcmp("a", s_a) == 0) ok 157 157 ("a" == s_a) ok 158 158 !("a" != s_a) ok … … 161 161 ("a" <= s_a) ok 162 162 !("a" < s_a) ok 163 ( cmp(s_a, "a") == 0) ok163 (strcmp(s_a, "a") == 0) ok 164 164 (s_a == "a") ok 165 165 !(s_a != "a") ok … … 168 168 (s_a <= "a") ok 169 169 !(s_a < "a") ok 170 ( cmp(s_aa, s_aa) == 0) ok170 (strcmp(s_aa, s_aa) == 0) ok 171 171 (s_aa == s_aa) ok 172 172 !(s_aa != s_aa) ok … … 175 175 (s_aa <= s_aa) ok 176 176 !(s_aa < s_aa) ok 177 ( cmp("aa", s_aa) == 0) ok177 (strcmp("aa", s_aa) == 0) ok 178 178 ("aa" == s_aa) ok 179 179 !("aa" != s_aa) ok … … 182 182 ("aa" <= s_aa) ok 183 183 !("aa" < s_aa) ok 184 ( cmp(s_aa, "aa") == 0) ok184 (strcmp(s_aa, "aa") == 0) ok 185 185 (s_aa == "aa") ok 186 186 !(s_aa != "aa") ok … … 189 189 (s_aa <= "aa") ok 190 190 !(s_aa < "aa") ok 191 ( cmp(s_a, s_b) < 0) ok191 (strcmp(s_a, s_b) < 0) ok 192 192 !(s_a == s_b) ok 193 193 (s_a != s_b) ok … … 196 196 (s_a <= s_b) ok 197 197 (s_a < s_b) ok 198 ( cmp("a", s_b) < 0) ok198 (strcmp("a", s_b) < 0) ok 199 199 !("a" == s_b) ok 200 200 ("a" != s_b) ok … … 203 203 ("a" <= s_b) ok 204 204 ("a" < s_b) ok 205 ( cmp(s_a, "b") < 0) ok205 (strcmp(s_a, "b") < 0) ok 206 206 !(s_a == "b") ok 207 207 (s_a != "b") ok … … 210 210 (s_a <= "b") ok 211 211 (s_a < "b") ok 212 ( cmp(s_b, s_a) > 0) ok212 (strcmp(s_b, s_a) > 0) ok 213 213 !(s_b == s_a) ok 214 214 (s_b != s_a) ok … … 217 217 !(s_b <= s_a) ok 218 218 !(s_b < s_a) ok 219 ( cmp("b", s_a) > 0) ok219 (strcmp("b", s_a) > 0) ok 220 220 !("b" == s_a) ok 221 221 ("b" != s_a) ok … … 224 224 !("b" <= s_a) ok 225 225 !("b" < s_a) ok 226 ( cmp(s_b, "a") > 0) ok226 (strcmp(s_b, "a") > 0) ok 227 227 !(s_b == "a") ok 228 228 (s_b != "a") ok … … 231 231 !(s_b <= "a") ok 232 232 !(s_b < "a") ok 233 ( cmp(s_a, s_ba) < 0) ok233 (strcmp(s_a, s_ba) < 0) ok 234 234 !(s_a == s_ba) ok 235 235 (s_a != s_ba) ok … … 238 238 (s_a <= s_ba) ok 239 239 (s_a < s_ba) ok 240 ( cmp("a", s_ba) < 0) ok240 (strcmp("a", s_ba) < 0) ok 241 241 !("a" == s_ba) ok 242 242 ("a" != s_ba) ok … … 245 245 ("a" <= s_ba) ok 246 246 ("a" < s_ba) ok 247 ( cmp(s_a, "ba") < 0) ok247 (strcmp(s_a, "ba") < 0) ok 248 248 !(s_a == "ba") ok 249 249 (s_a != "ba") ok … … 252 252 (s_a <= "ba") ok 253 253 (s_a < "ba") ok 254 ( cmp(s_ba, s_a) > 0) ok254 (strcmp(s_ba, s_a) > 0) ok 255 255 !(s_ba == s_a) ok 256 256 (s_ba != s_a) ok … … 259 259 !(s_ba <= s_a) ok 260 260 !(s_ba < s_a) ok 261 ( cmp("ba", s_a) > 0) ok261 (strcmp("ba", s_a) > 0) ok 262 262 !("ba" == s_a) ok 263 263 ("ba" != s_a) ok … … 266 266 !("ba" <= s_a) ok 267 267 !("ba" < s_a) ok 268 ( cmp(s_ba, "a") > 0) ok268 (strcmp(s_ba, "a") > 0) ok 269 269 !(s_ba == "a") ok 270 270 (s_ba != "a") ok … … 273 273 !(s_ba <= "a") ok 274 274 !(s_ba < "a") ok 275 ( cmp(s_aa, s_ab) < 0) ok275 (strcmp(s_aa, s_ab) < 0) ok 276 276 !(s_aa == s_ab) ok 277 277 (s_aa != s_ab) ok … … 280 280 (s_aa <= s_ab) ok 281 281 (s_aa < s_ab) ok 282 ( cmp("aa", s_ab) < 0) ok282 (strcmp("aa", s_ab) < 0) ok 283 283 !("aa" == s_ab) ok 284 284 ("aa" != s_ab) ok … … 287 287 ("aa" <= s_ab) ok 288 288 ("aa" < s_ab) ok 289 ( cmp(s_aa, "ab") < 0) ok289 (strcmp(s_aa, "ab") < 0) ok 290 290 !(s_aa == "ab") ok 291 291 (s_aa != "ab") ok … … 294 294 (s_aa <= "ab") ok 295 295 (s_aa < "ab") ok 296 ( cmp(s_ab, s_aa) > 0) ok296 (strcmp(s_ab, s_aa) > 0) ok 297 297 !(s_ab == s_aa) ok 298 298 (s_ab != s_aa) ok … … 301 301 !(s_ab <= s_aa) ok 302 302 !(s_ab < s_aa) ok 303 ( cmp("ab", s_aa) > 0) ok303 (strcmp("ab", s_aa) > 0) ok 304 304 !("ab" == s_aa) ok 305 305 ("ab" != s_aa) ok … … 308 308 !("ab" <= s_aa) ok 309 309 !("ab" < s_aa) ok 310 ( cmp(s_ab, "aa") > 0) ok310 (strcmp(s_ab, "aa") > 0) ok 311 311 !(s_ab == "aa") ok 312 312 (s_ab != "aa") ok … … 315 315 !(s_ab <= "aa") ok 316 316 !(s_ab < "aa") ok 317 ( cmp(s_ba, s_bb) < 0) ok317 (strcmp(s_ba, s_bb) < 0) ok 318 318 !(s_ba == s_bb) ok 319 319 (s_ba != s_bb) ok … … 322 322 (s_ba <= s_bb) ok 323 323 (s_ba < s_bb) ok 324 ( cmp("ba", s_bb) < 0) ok324 (strcmp("ba", s_bb) < 0) ok 325 325 !("ba" == s_bb) ok 326 326 ("ba" != s_bb) ok … … 329 329 ("ba" <= s_bb) ok 330 330 ("ba" < s_bb) ok 331 ( cmp(s_ba, "bb") < 0) ok331 (strcmp(s_ba, "bb") < 0) ok 332 332 !(s_ba == "bb") ok 333 333 (s_ba != "bb") ok … … 336 336 (s_ba <= "bb") ok 337 337 (s_ba < "bb") ok 338 ( cmp(s_bb, s_ba) > 0) ok338 (strcmp(s_bb, s_ba) > 0) ok 339 339 !(s_bb == s_ba) ok 340 340 (s_bb != s_ba) ok … … 343 343 !(s_bb <= s_ba) ok 344 344 !(s_bb < s_ba) ok 345 ( cmp("bb", s_ba) > 0) ok345 (strcmp("bb", s_ba) > 0) ok 346 346 !("bb" == s_ba) ok 347 347 ("bb" != s_ba) ok … … 350 350 !("bb" <= s_ba) ok 351 351 !("bb" < s_ba) ok 352 ( cmp(s_bb, "ba") > 0) ok352 (strcmp(s_bb, "ba") > 0) ok 353 353 !(s_bb == "ba") ok 354 354 (s_bb != "ba") ok … … 357 357 !(s_bb <= "ba") ok 358 358 !(s_bb < "ba") ok 359 ( cmp(s_aa, s_b) < 0) ok359 (strcmp(s_aa, s_b) < 0) ok 360 360 !(s_aa == s_b) ok 361 361 (s_aa != s_b) ok … … 364 364 (s_aa <= s_b) ok 365 365 (s_aa < s_b) ok 366 ( cmp("aa", s_b) < 0) ok366 (strcmp("aa", s_b) < 0) ok 367 367 !("aa" == s_b) ok 368 368 ("aa" != s_b) ok … … 371 371 ("aa" <= s_b) ok 372 372 ("aa" < s_b) ok 373 ( cmp(s_aa, "b") < 0) ok373 (strcmp(s_aa, "b") < 0) ok 374 374 !(s_aa == "b") ok 375 375 (s_aa != "b") ok … … 378 378 (s_aa <= "b") ok 379 379 (s_aa < "b") ok 380 ( cmp(s_b, s_aa) > 0) ok380 (strcmp(s_b, s_aa) > 0) ok 381 381 !(s_b == s_aa) ok 382 382 (s_b != s_aa) ok … … 385 385 !(s_b <= s_aa) ok 386 386 !(s_b < s_aa) ok 387 ( cmp("b", s_aa) > 0) ok387 (strcmp("b", s_aa) > 0) ok 388 388 !("b" == s_aa) ok 389 389 ("b" != s_aa) ok … … 392 392 !("b" <= s_aa) ok 393 393 !("b" < s_aa) ok 394 ( cmp(s_b, "aa") > 0) ok394 (strcmp(s_b, "aa") > 0) ok 395 395 !(s_b == "aa") ok 396 396 (s_b != "aa") ok … … 400 400 !(s_b < "aa") ok 401 401 ------- string_res ------- 402 ( cmp(s_, s_) == 0) ok402 (strcmp(s_, s_) == 0) ok 403 403 (s_ == s_) ok 404 404 !(s_ != s_) ok … … 407 407 (s_ <= s_) ok 408 408 !(s_ < s_) ok 409 ( cmp("", s_) == 0) ok409 (strcmp("", s_) == 0) ok 410 410 ("" == s_) ok 411 411 !("" != s_) ok … … 414 414 ("" <= s_) ok 415 415 !("" < s_) ok 416 ( cmp(s_, "") == 0) ok416 (strcmp(s_, "") == 0) ok 417 417 (s_ == "") ok 418 418 !(s_ != "") ok … … 421 421 (s_ <= "") ok 422 422 !(s_ < "") ok 423 ( cmp(s_, s_a) < 0) ok423 (strcmp(s_, s_a) < 0) ok 424 424 !(s_ == s_a) ok 425 425 (s_ != s_a) ok … … 428 428 (s_ <= s_a) ok 429 429 (s_ < s_a) ok 430 ( cmp("", s_a) < 0) ok430 (strcmp("", s_a) < 0) ok 431 431 !("" == s_a) ok 432 432 ("" != s_a) ok … … 435 435 ("" <= s_a) ok 436 436 ("" < s_a) ok 437 ( cmp(s_, "a") < 0) ok437 (strcmp(s_, "a") < 0) ok 438 438 !(s_ == "a") ok 439 439 (s_ != "a") ok … … 442 442 (s_ <= "a") ok 443 443 (s_ < "a") ok 444 ( cmp(s_a, s_) > 0) ok444 (strcmp(s_a, s_) > 0) ok 445 445 !(s_a == s_) ok 446 446 (s_a != s_) ok … … 449 449 !(s_a <= s_) ok 450 450 !(s_a < s_) ok 451 ( cmp("a", s_) > 0) ok451 (strcmp("a", s_) > 0) ok 452 452 !("a" == s_) ok 453 453 ("a" != s_) ok … … 456 456 !("a" <= s_) ok 457 457 !("a" < s_) ok 458 ( cmp(s_a, "") > 0) ok458 (strcmp(s_a, "") > 0) ok 459 459 !(s_a == "") ok 460 460 (s_a != "") ok … … 463 463 !(s_a <= "") ok 464 464 !(s_a < "") ok 465 ( cmp(s_, s_aa) < 0) ok465 (strcmp(s_, s_aa) < 0) ok 466 466 !(s_ == s_aa) ok 467 467 (s_ != s_aa) ok … … 470 470 (s_ <= s_aa) ok 471 471 (s_ < s_aa) ok 472 ( cmp("", s_aa) < 0) ok472 (strcmp("", s_aa) < 0) ok 473 473 !("" == s_aa) ok 474 474 ("" != s_aa) ok … … 477 477 ("" <= s_aa) ok 478 478 ("" < s_aa) ok 479 ( cmp(s_, "aa") < 0) ok479 (strcmp(s_, "aa") < 0) ok 480 480 !(s_ == "aa") ok 481 481 (s_ != "aa") ok … … 484 484 (s_ <= "aa") ok 485 485 (s_ < "aa") ok 486 ( cmp(s_aa, s_) > 0) ok486 (strcmp(s_aa, s_) > 0) ok 487 487 !(s_aa == s_) ok 488 488 (s_aa != s_) ok … … 491 491 !(s_aa <= s_) ok 492 492 !(s_aa < s_) ok 493 ( cmp("aa", s_) > 0) ok493 (strcmp("aa", s_) > 0) ok 494 494 !("aa" == s_) ok 495 495 ("aa" != s_) ok … … 498 498 !("aa" <= s_) ok 499 499 !("aa" < s_) ok 500 ( cmp(s_aa, "") > 0) ok500 (strcmp(s_aa, "") > 0) ok 501 501 !(s_aa == "") ok 502 502 (s_aa != "") ok … … 505 505 !(s_aa <= "") ok 506 506 !(s_aa < "") ok 507 ( cmp(s_a, s_aa) < 0) ok507 (strcmp(s_a, s_aa) < 0) ok 508 508 !(s_a == s_aa) ok 509 509 (s_a != s_aa) ok … … 512 512 (s_a <= s_aa) ok 513 513 (s_a < s_aa) ok 514 ( cmp("a", s_aa) < 0) ok514 (strcmp("a", s_aa) < 0) ok 515 515 !("a" == s_aa) ok 516 516 ("a" != s_aa) ok … … 519 519 ("a" <= s_aa) ok 520 520 ("a" < s_aa) ok 521 ( cmp(s_a, "aa") < 0) ok521 (strcmp(s_a, "aa") < 0) ok 522 522 !(s_a == "aa") ok 523 523 (s_a != "aa") ok … … 526 526 (s_a <= "aa") ok 527 527 (s_a < "aa") ok 528 ( cmp(s_aa, s_a) > 0) ok528 (strcmp(s_aa, s_a) > 0) ok 529 529 !(s_aa == s_a) ok 530 530 (s_aa != s_a) ok … … 533 533 !(s_aa <= s_a) ok 534 534 !(s_aa < s_a) ok 535 ( cmp("aa", s_a) > 0) ok535 (strcmp("aa", s_a) > 0) ok 536 536 !("aa" == s_a) ok 537 537 ("aa" != s_a) ok … … 540 540 !("aa" <= s_a) ok 541 541 !("aa" < s_a) ok 542 ( cmp(s_aa, "a") > 0) ok542 (strcmp(s_aa, "a") > 0) ok 543 543 !(s_aa == "a") ok 544 544 (s_aa != "a") ok … … 547 547 !(s_aa <= "a") ok 548 548 !(s_aa < "a") ok 549 ( cmp(s_a, s_a) == 0) ok549 (strcmp(s_a, s_a) == 0) ok 550 550 (s_a == s_a) ok 551 551 !(s_a != s_a) ok … … 554 554 (s_a <= s_a) ok 555 555 !(s_a < s_a) ok 556 ( cmp("a", s_a) == 0) ok556 (strcmp("a", s_a) == 0) ok 557 557 ("a" == s_a) ok 558 558 !("a" != s_a) ok … … 561 561 ("a" <= s_a) ok 562 562 !("a" < s_a) ok 563 ( cmp(s_a, "a") == 0) ok563 (strcmp(s_a, "a") == 0) ok 564 564 (s_a == "a") ok 565 565 !(s_a != "a") ok … … 568 568 (s_a <= "a") ok 569 569 !(s_a < "a") ok 570 ( cmp(s_aa, s_aa) == 0) ok570 (strcmp(s_aa, s_aa) == 0) ok 571 571 (s_aa == s_aa) ok 572 572 !(s_aa != s_aa) ok … … 575 575 (s_aa <= s_aa) ok 576 576 !(s_aa < s_aa) ok 577 ( cmp("aa", s_aa) == 0) ok577 (strcmp("aa", s_aa) == 0) ok 578 578 ("aa" == s_aa) ok 579 579 !("aa" != s_aa) ok … … 582 582 ("aa" <= s_aa) ok 583 583 !("aa" < s_aa) ok 584 ( cmp(s_aa, "aa") == 0) ok584 (strcmp(s_aa, "aa") == 0) ok 585 585 (s_aa == "aa") ok 586 586 !(s_aa != "aa") ok … … 589 589 (s_aa <= "aa") ok 590 590 !(s_aa < "aa") ok 591 ( cmp(s_a, s_b) < 0) ok591 (strcmp(s_a, s_b) < 0) ok 592 592 !(s_a == s_b) ok 593 593 (s_a != s_b) ok … … 596 596 (s_a <= s_b) ok 597 597 (s_a < s_b) ok 598 ( cmp("a", s_b) < 0) ok598 (strcmp("a", s_b) < 0) ok 599 599 !("a" == s_b) ok 600 600 ("a" != s_b) ok … … 603 603 ("a" <= s_b) ok 604 604 ("a" < s_b) ok 605 ( cmp(s_a, "b") < 0) ok605 (strcmp(s_a, "b") < 0) ok 606 606 !(s_a == "b") ok 607 607 (s_a != "b") ok … … 610 610 (s_a <= "b") ok 611 611 (s_a < "b") ok 612 ( cmp(s_b, s_a) > 0) ok612 (strcmp(s_b, s_a) > 0) ok 613 613 !(s_b == s_a) ok 614 614 (s_b != s_a) ok … … 617 617 !(s_b <= s_a) ok 618 618 !(s_b < s_a) ok 619 ( cmp("b", s_a) > 0) ok619 (strcmp("b", s_a) > 0) ok 620 620 !("b" == s_a) ok 621 621 ("b" != s_a) ok … … 624 624 !("b" <= s_a) ok 625 625 !("b" < s_a) ok 626 ( cmp(s_b, "a") > 0) ok626 (strcmp(s_b, "a") > 0) ok 627 627 !(s_b == "a") ok 628 628 (s_b != "a") ok … … 631 631 !(s_b <= "a") ok 632 632 !(s_b < "a") ok 633 ( cmp(s_a, s_ba) < 0) ok633 (strcmp(s_a, s_ba) < 0) ok 634 634 !(s_a == s_ba) ok 635 635 (s_a != s_ba) ok … … 638 638 (s_a <= s_ba) ok 639 639 (s_a < s_ba) ok 640 ( cmp("a", s_ba) < 0) ok640 (strcmp("a", s_ba) < 0) ok 641 641 !("a" == s_ba) ok 642 642 ("a" != s_ba) ok … … 645 645 ("a" <= s_ba) ok 646 646 ("a" < s_ba) ok 647 ( cmp(s_a, "ba") < 0) ok647 (strcmp(s_a, "ba") < 0) ok 648 648 !(s_a == "ba") ok 649 649 (s_a != "ba") ok … … 652 652 (s_a <= "ba") ok 653 653 (s_a < "ba") ok 654 ( cmp(s_ba, s_a) > 0) ok654 (strcmp(s_ba, s_a) > 0) ok 655 655 !(s_ba == s_a) ok 656 656 (s_ba != s_a) ok … … 659 659 !(s_ba <= s_a) ok 660 660 !(s_ba < s_a) ok 661 ( cmp("ba", s_a) > 0) ok661 (strcmp("ba", s_a) > 0) ok 662 662 !("ba" == s_a) ok 663 663 ("ba" != s_a) ok … … 666 666 !("ba" <= s_a) ok 667 667 !("ba" < s_a) ok 668 ( cmp(s_ba, "a") > 0) ok668 (strcmp(s_ba, "a") > 0) ok 669 669 !(s_ba == "a") ok 670 670 (s_ba != "a") ok … … 673 673 !(s_ba <= "a") ok 674 674 !(s_ba < "a") ok 675 ( cmp(s_aa, s_ab) < 0) ok675 (strcmp(s_aa, s_ab) < 0) ok 676 676 !(s_aa == s_ab) ok 677 677 (s_aa != s_ab) ok … … 680 680 (s_aa <= s_ab) ok 681 681 (s_aa < s_ab) ok 682 ( cmp("aa", s_ab) < 0) ok682 (strcmp("aa", s_ab) < 0) ok 683 683 !("aa" == s_ab) ok 684 684 ("aa" != s_ab) ok … … 687 687 ("aa" <= s_ab) ok 688 688 ("aa" < s_ab) ok 689 ( cmp(s_aa, "ab") < 0) ok689 (strcmp(s_aa, "ab") < 0) ok 690 690 !(s_aa == "ab") ok 691 691 (s_aa != "ab") ok … … 694 694 (s_aa <= "ab") ok 695 695 (s_aa < "ab") ok 696 ( cmp(s_ab, s_aa) > 0) ok696 (strcmp(s_ab, s_aa) > 0) ok 697 697 !(s_ab == s_aa) ok 698 698 (s_ab != s_aa) ok … … 701 701 !(s_ab <= s_aa) ok 702 702 !(s_ab < s_aa) ok 703 ( cmp("ab", s_aa) > 0) ok703 (strcmp("ab", s_aa) > 0) ok 704 704 !("ab" == s_aa) ok 705 705 ("ab" != s_aa) ok … … 708 708 !("ab" <= s_aa) ok 709 709 !("ab" < s_aa) ok 710 ( cmp(s_ab, "aa") > 0) ok710 (strcmp(s_ab, "aa") > 0) ok 711 711 !(s_ab == "aa") ok 712 712 (s_ab != "aa") ok … … 715 715 !(s_ab <= "aa") ok 716 716 !(s_ab < "aa") ok 717 ( cmp(s_ba, s_bb) < 0) ok717 (strcmp(s_ba, s_bb) < 0) ok 718 718 !(s_ba == s_bb) ok 719 719 (s_ba != s_bb) ok … … 722 722 (s_ba <= s_bb) ok 723 723 (s_ba < s_bb) ok 724 ( cmp("ba", s_bb) < 0) ok724 (strcmp("ba", s_bb) < 0) ok 725 725 !("ba" == s_bb) ok 726 726 ("ba" != s_bb) ok … … 729 729 ("ba" <= s_bb) ok 730 730 ("ba" < s_bb) ok 731 ( cmp(s_ba, "bb") < 0) ok731 (strcmp(s_ba, "bb") < 0) ok 732 732 !(s_ba == "bb") ok 733 733 (s_ba != "bb") ok … … 736 736 (s_ba <= "bb") ok 737 737 (s_ba < "bb") ok 738 ( cmp(s_bb, s_ba) > 0) ok738 (strcmp(s_bb, s_ba) > 0) ok 739 739 !(s_bb == s_ba) ok 740 740 (s_bb != s_ba) ok … … 743 743 !(s_bb <= s_ba) ok 744 744 !(s_bb < s_ba) ok 745 ( cmp("bb", s_ba) > 0) ok745 (strcmp("bb", s_ba) > 0) ok 746 746 !("bb" == s_ba) ok 747 747 ("bb" != s_ba) ok … … 750 750 !("bb" <= s_ba) ok 751 751 !("bb" < s_ba) ok 752 ( cmp(s_bb, "ba") > 0) ok752 (strcmp(s_bb, "ba") > 0) ok 753 753 !(s_bb == "ba") ok 754 754 (s_bb != "ba") ok … … 757 757 !(s_bb <= "ba") ok 758 758 !(s_bb < "ba") ok 759 ( cmp(s_aa, s_b) < 0) ok759 (strcmp(s_aa, s_b) < 0) ok 760 760 !(s_aa == s_b) ok 761 761 (s_aa != s_b) ok … … 764 764 (s_aa <= s_b) ok 765 765 (s_aa < s_b) ok 766 ( cmp("aa", s_b) < 0) ok766 (strcmp("aa", s_b) < 0) ok 767 767 !("aa" == s_b) ok 768 768 ("aa" != s_b) ok … … 771 771 ("aa" <= s_b) ok 772 772 ("aa" < s_b) ok 773 ( cmp(s_aa, "b") < 0) ok773 (strcmp(s_aa, "b") < 0) ok 774 774 !(s_aa == "b") ok 775 775 (s_aa != "b") ok … … 778 778 (s_aa <= "b") ok 779 779 (s_aa < "b") ok 780 ( cmp(s_b, s_aa) > 0) ok780 (strcmp(s_b, s_aa) > 0) ok 781 781 !(s_b == s_aa) ok 782 782 (s_b != s_aa) ok … … 785 785 !(s_b <= s_aa) ok 786 786 !(s_b < s_aa) ok 787 ( cmp("b", s_aa) > 0) ok787 (strcmp("b", s_aa) > 0) ok 788 788 !("b" == s_aa) ok 789 789 ("b" != s_aa) ok … … 792 792 !("b" <= s_aa) ok 793 793 !("b" < s_aa) ok 794 ( cmp(s_b, "aa") > 0) ok794 (strcmp(s_b, "aa") > 0) ok 795 795 !(s_b == "aa") ok 796 796 (s_b != "aa") ok -
tests/collections/.expect/string-istream-manip.txt
re0cc9e0 re7eb1f0 69 69 13 wwwwwwww 70 70 14 cccc 71 15 q71 15 72 72 1 yyyyyyyyyyyyyyyyyyyy 73 73 2 abcxxx … … 84 84 13 wwwwwwww 85 85 14 cccc 86 15 q86 15 -
tests/collections/string-compare.cfa
re0cc9e0 re7eb1f0 3 3 4 4 #define test_eq_(l, r) \ 5 chk( ( cmp(l, r) == 0) ) \5 chk( (strcmp(l, r) == 0) ) \ 6 6 chk( (l == r) ) \ 7 7 chk( !(l != r) ) \ … … 17 17 18 18 #define test_lt_(l, r) \ 19 chk( ( cmp(l, r) < 0) ) \19 chk( (strcmp(l, r) < 0) ) \ 20 20 chk( !(l == r) ) \ 21 21 chk( (l != r) ) \ … … 26 26 27 27 #define test_gt_(l, r) \ 28 chk( ( cmp(l, r) > 0) ) \28 chk( (strcmp(l, r) > 0) ) \ 29 29 chk( !(l == r) ) \ 30 30 chk( (l != r) ) \
Note: See TracChangeset
for help on using the changeset viewer.