scanning directories for unit tests...
scanning present working directory for unit tests...
found unit tests: (entities-spec.scm modules-spec.scm prelude-spec.scm)
running unit tests from file: entities-spec.scm, entrypoint: spec
------------------------------------------
[suite] HTML entity tables
[test] escaping and unescaping are inverses over the whole table
[assert] every escapable character survives a round trip
[pass] expect: (), got: ()
[assert] and so does a sentence mixing them
[pass] expect: caf? ? ? 3 ? ?, got: caf? ? ? 3 ? ?
[test] html-entity-ref reads a reference
[assert] a currency sign's HTML5-only spelling
[pass] expect: $, got: $
[assert] a non-breaking space
[pass] expect: ?, got: ?
[assert] an arrow
[pass] expect: ?, got: ?
[assert] a currency sign
[pass] expect: ?, got: ?
[assert] a Greek letter
[pass] expect: ?, got: ?
[assert] the ampersand entity
[pass] expect: &, got: &
[assert] and another
[pass] expect: ?, got: ?
[assert] punctuation the old table did not have
[pass] expect: ?, got: ?
[assert] the legacy upper-case spelling too
[pass] expect: &, got: &
[assert] case matters: this is the capital
[pass] expect: ?, got: ?
[assert] a mathematical symbol
[pass] expect: ?, got: ?
[assert] an entity standing for two code points
[pass] expect: ??, got: ??
[test] html-unescape uses the wider table
[assert] the legacy upper-case spellings still work
[pass] expect: &<>", got: &<>"
[assert] the HTML5-only names decode too
[pass] expect: a/b*c$%, got: a/b*c$%
[assert] two references with nothing between them
[pass] expect: ??, got: ??
[assert] numeric references still work alongside them
[pass] expect: ?', got: ?'
[assert] a two-code-point reference decodes to two
[pass] expect: (2 ??), got: (2 ??)
[assert] a string of symbols comes back
[pass] expect: Price? ?5 ? ? ??, got: Price? ?5 ? ? ??
[assert] an unknown name is still left alone
[pass] expect: &nope;, got: &nope;
[assert] a reference at the very end of the string
[pass] expect: 5 ?, got: 5 ?
[test] html-escape uses the wider table
[assert] a non-breaking space is written as one
[pass] expect: a b, got: a b
[assert] the HTML5-only names are still not emitted
[pass] expect: a/b*c$%, got: a/b*c$%
[assert] and the five significant ones are unaffected
[pass] expect: <>&"', got: <>&"'
[assert] a character with no entity passes through
[pass] expect: a?, got: a?
[assert] symbols and accents all become entities
[pass] expect: Price… €5 — © α→ café, got: Price… €5 — © α→ café
[test] html-char-ref writes a reference
[assert] nor does a slash
[pass] expect: #f, got: #f
[assert] and another
[pass] expect: ã, got: ã
[assert] and the apostrophe HTML5 gave us
[pass] expect: ', got: '
[assert] a digit has none either
[pass] expect: #f, got: #f
[assert] a non-breaking space
[pass] expect: , got:
[assert] another
[pass] expect: >, got: >
[assert] a symbol
[pass] expect: ©, got: ©
[assert] a significant character
[pass] expect: <, got: <
[assert] a character with no entity
[pass] expect: #f, got: #f
[assert] another
[pass] expect: ", got: "
[assert] another
[pass] expect: &, got: &
[assert] an accent, as before
[pass] expect: á, got: á
[assert] nor an astral-plane character
[pass] expect: #f, got: #f
[test] the two tables agree with each other
[assert] the encoder's own lookup is consistent
[pass] expect: (), got: ()
[assert] and reading it back gives the same character
[pass] expect: (), got: ()
[assert] nothing is emitted that cannot be read back
[pass] expect: (), got: ()
[test] a reference stands for the character the standard gives it
[assert] the mathematical brackets are what is written
[pass] expect: (⟨ ⟩), got: (⟨ ⟩)
[assert] so those characters pass through unchanged
[pass] expect: ??, got: ??
[assert] while the references still decode as HTML5 reads them
[pass] expect: (? ?), got: (? ?)
[assert] and they survive a round trip
[pass] expect: ??, got: ??
[assert] the CJK brackets have no reference to write
[pass] expect: (#f #f), got: (#f #f)
[test] every entry is shaped the way a lookup expects
[assert] escape values are named references
[pass] expect: #t, got: #t
[assert] decode names run from & to ;
[pass] expect: #t, got: #t
[assert] escape keys are single characters
[pass] expect: #t, got: #t
[test] html-entity-ref refuses what is not a reference
[assert] an empty reference
[pass] expect: #f, got: #f
[assert] an unknown name
[pass] expect: #f, got: #f
[assert] the empty string
[pass] expect: #f, got: #f
[assert] a reference with no semicolon
[pass] expect: #f, got: #f
[assert] a name with no ampersand
[pass] expect: #f, got: #f
[test] the tables are the standard's, not a hand-written sample
[assert] the escape set is the HTML4 one
[pass] expect: 253, got: 253
[assert] every HTML5 reference ending in a semicolon
[pass] expect: 2125, got: 2125
[info] ran 1 tasks in: 0 seconds, 8825 microseconds
running unit tests from file: modules-spec.scm, entrypoint: spec
------------------------------------------
[suite] Kracht sub-modules
[test] (kracht html-entities) works standalone
[assert] the escape table is the HTML4 set
[pass] expect: 253, got: 253
[assert] and the decode table is the HTML5 one
[pass] expect: 2125, got: 2125
[assert] html-entity-ref reads a reference
[pass] expect: &, got: &
[assert] including one the HTML4 set has no name for
[pass] expect: ?, got: ?
[assert] html-char-ref writes a reference
[pass] expect: <, got: <
[assert] an unknown reference is #f
[pass] expect: #f, got: #f
[test] (kracht strings) works standalone
[assert] base64-decode
[pass] expect: hello, got: hello
[assert] non-empty-string?
[pass] expect: #t, got: #t
[assert] string-drop-first-last
[pass] expect: ell, got: ell
[assert] base64-encode
[pass] expect: aGVsbG8=, got: aGVsbG8=
[test] the split is clean: modules do not leak each other's names
[assert] (kracht html-entities) is tables only, not the escapers
[pass] expect: #f, got: #f
[assert] (kracht io) does not export base64-encode
[pass] expect: #f, got: #f
[assert] (kracht strings) does not export html-escape
[pass] expect: #f, got: #f
[assert] (kracht sql) does not export flatten-list
[pass] expect: #f, got: #f
[assert] (kracht strings) exports base64-encode
[pass] expect: #t, got: #t
[assert] (kracht prelude) re-exports html-entity-ref
[pass] expect: #t, got: #t
[assert] (kracht web) exports html-escape-context
[pass] expect: #t, got: #t
[assert] (kracht sql) exports sql-parameterize
[pass] expect: #t, got: #t
[assert] (kracht sql) exports value->sql-literal
[pass] expect: #t, got: #t
[assert] (kracht html-entities) exports html-char-ref
[pass] expect: #t, got: #t
[assert] (kracht sql) exports quote-sql-identifier
[pass] expect: #t, got: #t
[assert] (kracht prelude) re-exports sql-insert
[pass] expect: #t, got: #t
[assert] (kracht sql) exports sql-select
[pass] expect: #t, got: #t
[assert] (kracht sql) exports sql-upsert-many
[pass] expect: #t, got: #t
[assert] (kracht prelude) re-exports sql-insert-many
[pass] expect: #t, got: #t
[assert] (kracht sql) does not export the web encoders
[pass] expect: #f, got: #f
[test] (kracht web) works standalone
[assert] html-unescape numeric reference
[pass] expect: ', got: '
[assert] html-escape-css-value
[pass] expect: 100\000025 , got: 100\000025
[assert] html-escape ampersand
[pass] expect: a & b, got: a & b
[assert] html-escape
[pass] expect: ', got: '
[assert] html-escape-context javascript
[pass] expect: a\x22b, got: a\x22b
[assert] alist-from-url-encoded-body
[pass] expect: ((a . 1)), got: ((a . 1))
[assert] html-unescape
[pass] expect: <, got: <
[test] (kracht io) works standalone
[assert] syscall returns a string
[pass] expect: #t, got: #t
[assert] get-short-commit-sha returns a string
[pass] expect: #t, got: #t
[test] (kracht sql) works standalone
[assert] symbol->sql-column
[pass] expect: first_name, got: first_name
[assert] quote-sql-identifier
[pass] expect: "select", got: "select"
[assert] sql-column->symbol
[pass] expect: first-name, got: first-name
[assert] sql-upsert renders ON CONFLICT
[pass] expect: INSERT INTO "t" ("id", "a") VALUES (?, ?) ON CONFLICT ("id") DO UPDATE SET "a" = EXCLUDED."a", got: INSERT INTO "t" ("id", "a") VALUES (?, ?) ON CONFLICT ("id") DO UPDATE SET "a" = EXCLUDED."a"
[assert] sql-select binds its value
[pass] expect: (SELECT * FROM "t" WHERE "id" = ? (1)), got: (SELECT * FROM "t" WHERE "id" = ? (1))
[assert] value->sql-literal escapes quotes
[pass] expect: 'O''Brien', got: 'O''Brien'
[assert] sql-insert-many groups one VALUES per row
[pass] expect: INSERT INTO "t" ("a") VALUES (?), (?), got: INSERT INTO "t" ("a") VALUES (?), (?)
[test] (kracht lists) works standalone
[assert] assoc-ref-or
[pass] expect: 1, got: 1
[assert] flatten-list
[pass] expect: (1 2 3), got: (1 2 3)
[assert] alist?
[pass] expect: #t, got: #t
[info] ran 1 tasks in: 0 seconds, 23089 microseconds
running unit tests from file: prelude-spec.scm, entrypoint: spec
------------------------------------------
[suite] flatten-list
[test] what counts as a leaf
[assert] and a dotted pair on its own likewise
[pass] expect: (a b), got: (a b)
[assert] numbers and booleans are not list-like
[pass] expect: (0 #f #t 1), got: (0 #f #t 1)
[assert] a vector is a leaf too
[pass] expect: (1 #(2 3) 4), got: (1 #(2 3) 4)
[assert] an improper tail is flattened, not kept whole
[pass] expect: (a b c), got: (a b c)
[assert] mixed atoms keep their order and identity
[pass] expect: (1 two #t x three 4), got: (1 two #t x three 4)
[assert] a string is a leaf, not a list of characters
[pass] expect: (abc), got: (abc)
[test] the shapes it has to handle
[assert] empty lists disappear
[pass] expect: (1 2), got: (1 2)
[assert] an empty list
[pass] expect: (), got: ()
[assert] a bare atom becomes a one-element list
[pass] expect: (a), got: (a)
[assert] an empty list of empty lists
[pass] expect: (), got: ()
[assert] one level of nesting
[pass] expect: (1 2 3 4), got: (1 2 3 4)
[assert] a list with nothing to flatten
[pass] expect: (1 2 3), got: (1 2 3)
[assert] deep nesting
[pass] expect: (1 2 3 4 5), got: (1 2 3 4 5)
[assert] nesting on both sides of a spine
[pass] expect: (1 2 3 4 5 6), got: (1 2 3 4 5 6)
[test] it does not disturb its input
[assert] flattening twice changes nothing
[pass] expect: (1 2 3 4 5), got: (1 2 3 4 5)
[assert] the argument is untouched
[pass] expect: (1 (2 3) (4 (5))), got: (1 (2 3) (4 (5)))
[test] length is preserved for proper lists
[assert] a flattened tree has the same element count
[pass] expect: 6, got: 6
[test] it scales the way its callers need it to
[assert] a thousand sibling lists
[pass] expect: (0 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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999), got: (0 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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999)
[assert] depth-first, left to right
[pass] expect: (1 2 3 4 5 6 7 8), got: (1 2 3 4 5 6 7 8)
[assert] a thousand levels deep
[pass] expect: (deep), got: (deep)
[test] it survives the deeply nested input it is used on
[assert] a hundred levels deep
[pass] expect: (deep), got: (deep)
------------------------------------------
[suite] Another test suite
[test] html-unescape tests
[assert] Empty string
[pass] expect: , got:
[assert] Multiple entity occurrences
[pass] expect: It's a "quote"., got: It's a "quote".
[assert] Example sentence unescaped
[pass] expect: ?l?, m?ndo! Isto ? um teste., got: ?l?, m?ndo! Isto ? um teste.
[assert] Accented a entity
[pass] expect: ?, got: ?
[assert] Single apos entity
[pass] expect: ', got: '
[assert] C-cedilla entity
[pass] expect: ?, got: ?
[assert] String with no entities
[pass] expect: Hello, World!, got: Hello, World!
[assert] Accented A entity
[pass] expect: ?, got: ?
[assert] Single quot entity
[pass] expect: ", got: "
[assert] Mix of entities
[pass] expect: He's a "guy"., got: He's a "guy".
[test] html-escape tests
[assert] Accented I
[pass] expect: Í, got: Í
[assert] C-cedilla
[pass] expect: ç, got: ç
[assert] Empty string
[pass] expect: , got:
[assert] Accented U
[pass] expect: Ú, got: Ú
[assert] Accented E
[pass] expect: É, got: É
[assert] Accented u
[pass] expect: ú, got: ú
[assert] Accented i
[pass] expect: í, got: í
[assert] Single quote
[pass] expect: ', got: '
[assert] Example sentence escaped
[pass] expect: Ólá, múndo! Isto é um teste., got: Ólá, múndo! Isto é um teste.
[assert] Mix of quotes
[pass] expect: He's a "guy"., got: He's a "guy".
[assert] String with multiple occurrences
[pass] expect: He said, "It's a beautiful day!", got: He said, "It's a beautiful day!"
[assert] Multiple accents
[pass] expect: Árvore é bonita, got: Árvore é bonita
[assert] Double quote
[pass] expect: ", got: "
[assert] N-tilde
[pass] expect: ñ, got: ñ
[assert] String with no special characters
[pass] expect: Hello, World!, got: Hello, World!
[assert] Accented o
[pass] expect: ó, got: ó
[assert] Accented O
[pass] expect: Ó, got: Ó
[test] sha tests
[assert] get-short-commit-sha works as expected
[pass] expect: #t, got: #t
[test] Round-trip tests
[assert] Unescape then escape (for chars in alist)
[pass] expect: 'áéíóú", got: 'áéíóú"
[assert] Example sentence
[pass] expect: Ol?, m?ndo! Isto ? um teste., got: Ol?, m?ndo! Isto ? um teste.
[assert] Unescape then escape round-trips the significant characters
[pass] expect: <div>'test'</div>, got: <div>'test'</div>
[assert] Escape then unescape
[pass] expect: Hello, it's a "test" with ?????., got: Hello, it's a "test" with ?????.
------------------------------------------
[suite] SQL statement builder
[test] upsert: ON CONFLICT for PostgreSQL and SQLite
[assert] sqlite renders the same ON CONFLICT form
[pass] expect: INSERT INTO "users" ("id", "name") VALUES (?, ?) ON CONFLICT ("id") DO UPDATE SET "name" = EXCLUDED."name", got: INSERT INTO "users" ("id", "name") VALUES (?, ?) ON CONFLICT ("id") DO UPDATE SET "name" = EXCLUDED."name"
[assert] and may omit it
[pass] expect: INSERT INTO "users" ("id", "name") VALUES (?, ?) ON CONFLICT DO NOTHING, got: INSERT INTO "users" ("id", "name") VALUES (?, ?) ON CONFLICT DO NOTHING
[assert] the upsert binds no parameter of its own
[pass] expect: (1 A 2), got: (1 A 2)
[assert] an explicit column list narrows the update
[pass] expect: INSERT INTO "users" ("id", "name", "age") VALUES (?, ?, ?) ON CONFLICT ("id") DO UPDATE SET "name" = EXCLUDED."name", got: INSERT INTO "users" ("id", "name", "age") VALUES (?, ?, ?) ON CONFLICT ("id") DO UPDATE SET "name" = EXCLUDED."name"
[assert] DO NOTHING keeps the conflict target
[pass] expect: INSERT INTO "users" ("id", "name") VALUES (?, ?) ON CONFLICT ("id") DO NOTHING, got: INSERT INTO "users" ("id", "name") VALUES (?, ?) ON CONFLICT ("id") DO NOTHING
[test] multi-row INSERT refuses rows that do not line up
[assert] an empty batch
[pass] expect: rejected, got: rejected
[assert] a row carrying an extra column
[pass] expect: rejected, got: rejected
[assert] a row with different columns
[pass] expect: rejected, got: rejected
[test] IN and NOT IN
[assert] an empty IN never matches
[pass] expect: SELECT * FROM "users" WHERE 1 = 0, got: SELECT * FROM "users" WHERE 1 = 0
[assert] a populated NOT IN binds each element
[pass] expect: (SELECT * FROM "users" WHERE "id" NOT IN (?, ?, ?) (1 2 3)), got: (SELECT * FROM "users" WHERE "id" NOT IN (?, ?, ?) (1 2 3))
[assert] an empty NOT IN always matches
[pass] expect: SELECT * FROM "users" WHERE 1 = 1, got: SELECT * FROM "users" WHERE 1 = 1
[test] WHERE fragments compose
[assert] with its parameters
[pass] expect: (1 2), got: (1 2)
[assert] an empty condition list yields no clause
[pass] expect: , got:
[assert] #:start-index continues another fragment
[pass] expect: WHERE "a" = $4, got: WHERE "a" = $4
[test] misuse is reported, not silently mis-compiled
[assert] too many values
[pass] expect: rejected, got: rejected
[assert] a condition that is not a pair or list
[pass] expect: rejected, got: rejected
[assert] too few values
[pass] expect: rejected, got: rejected
[assert] an unknown ORDER BY direction
[pass] expect: rejected, got: rejected
[assert] an unknown placeholder style
[pass] expect: rejected, got: rejected
[assert] an operator outside the allow-list
[pass] expect: rejected, got: rejected
[assert] an INSERT with no columns
[pass] expect: rejected, got: rejected
[test] upsert: ON DUPLICATE KEY UPDATE for MySQL
[assert] MySQL quotes its identifiers and sources VALUES()
[pass] expect: INSERT INTO `users` (`id`, `name`) VALUES (?, ?) ON DUPLICATE KEY UPDATE `id` = VALUES(`id`), `name` = VALUES(`name`), got: INSERT INTO `users` (`id`, `name`) VALUES (?, ?) ON DUPLICATE KEY UPDATE `id` = VALUES(`id`), `name` = VALUES(`name`)
[assert] an explicit column list keeps the key out of it
[pass] expect: INSERT INTO `users` (`id`, `name`, `age`) VALUES (?, ?, ?) ON DUPLICATE KEY UPDATE `name` = VALUES(`name`), got: INSERT INTO `users` (`id`, `name`, `age`) VALUES (?, ?, ?) ON DUPLICATE KEY UPDATE `name` = VALUES(`name`)
[test] identifier quoting is what keeps a value out of the SQL
[assert] and never appears in the statement
[pass] expect: #f, got: #f
[assert] a quote in a column name is doubled, not closed
[pass] expect: SELECT * FROM "t" WHERE "x""; DROP TABLE t" = ?, got: SELECT * FROM "t" WHERE "x""; DROP TABLE t" = ?
[assert] #:quote-identifiers? #f emits bare names
[pass] expect: SELECT id FROM users WHERE first_name = ?, got: SELECT id FROM users WHERE first_name = ?
[test] multi-row INSERT
[assert] one row is a legal batch
[pass] expect: INSERT INTO "users" ("name") VALUES (?), got: INSERT INTO "users" ("name") VALUES (?)
[assert] parameters run row by row
[pass] expect: (A 1 B 2), got: (A 1 B 2)
[assert] rows are put into the first row's column order
[pass] expect: (A 1 B 2), got: (A 1 B 2)
[assert] numbered placeholders keep counting across rows
[pass] expect: INSERT INTO "users" ("name", "age") VALUES ($1, $2), ($3, $4), got: INSERT INTO "users" ("name", "age") VALUES ($1, $2), ($3, $4)
[test] #:dialect decides how identifiers are delimited
[assert] an unknown dialect is rejected
[pass] expect: rejected, got: rejected
[assert] the default is still ANSI quoting
[pass] expect: SELECT "id" FROM "users" WHERE "id" = ?, got: SELECT "id" FROM "users" WHERE "id" = ?
[assert] and so do the other builders
[pass] expect: (UPDATE `users` SET `name` = ? WHERE `id` = ? DELETE FROM `users` WHERE `id` = ?), got: (UPDATE `users` SET `name` = ? WHERE `id` = ? DELETE FROM `users` WHERE `id` = ?)
[assert] quote-sql-identifier switches delimiter on request
[pass] expect: ("id" `id`), got: ("id" `id`)
[assert] MySQL uses backticks, not double quotes
[pass] expect: SELECT `id`, `name` FROM `users` WHERE `id` = ? LIMIT ?, got: SELECT `id`, `name` FROM `users` WHERE `id` = ? LIMIT ?
[test] INSERT ... RETURNING
[assert] a column list is quoted
[pass] expect: INSERT INTO "users" ("name") VALUES (?) RETURNING "id", got: INSERT INTO "users" ("name") VALUES (?) RETURNING "id"
[assert] the star stays unquoted
[pass] expect: INSERT INTO "users" ("name") VALUES (?) RETURNING *, got: INSERT INTO "users" ("name") VALUES (?) RETURNING *
[test] SELECT with every clause
[assert] a lone OFFSET numbers from the first free slot
[pass] expect: SELECT * FROM "users" OFFSET $1, got: SELECT * FROM "users" OFFSET $1
[test] upsert: multi-row batches
[assert] parameters run row by row
[pass] expect: (1 A 2 B), got: (1 A 2 B)
[test] sql-parameterize fills a hand-written template
[assert] question marks in order
[pass] expect: (SELECT * FROM t WHERE a = ? AND b = ? (1 2)), got: (SELECT * FROM t WHERE a = ? AND b = ? (1 2))
[assert] renumbered for PostgreSQL
[pass] expect: UPDATE t SET a = $1 WHERE b = $2, got: UPDATE t SET a = $1 WHERE b = $2
[assert] a template with no values is left alone
[pass] expect: SELECT 1, got: SELECT 1
[test] DELETE conditions
[assert] a null test binds nothing
[pass] expect: (7), got: (7)
[test] placeholder dialects
[assert] a procedure supplies a custom style
[pass] expect: SELECT :p1, got: SELECT :p1
[assert] percent (pyformat)
[pass] expect: INSERT INTO "users" ("name") VALUES (%s), got: INSERT INTO "users" ("name") VALUES (%s)
[test] UPDATE binds the SET values before the WHERE ones
[assert] parameters
[pass] expect: (A 9 7), got: (A 9 7)
[assert] no conditions means no WHERE clause
[pass] expect: UPDATE "users" SET "active" = ?, got: UPDATE "users" SET "active" = ?
[test] upsert: misuse is reported
[assert] a conflict target that is not in the rows
[pass] expect: rejected, got: rejected
[assert] ON CONFLICT DO UPDATE needs a target
[pass] expect: rejected, got: rejected
[assert] an update that is neither 'auto, 'nothing nor a list
[pass] expect: rejected, got: rejected
[assert] nothing left to update
[pass] expect: rejected, got: rejected
[assert] MySQL has no RETURNING
[pass] expect: rejected, got: rejected
[assert] MySQL has no DO NOTHING
[pass] expect: rejected, got: rejected
[assert] an unknown dialect
[pass] expect: rejected, got: rejected
[assert] MySQL has no conflict target to give
[pass] expect: rejected, got: rejected
[assert] a column that is not in the rows
[pass] expect: rejected, got: rejected
[test] INSERT binds every value
[assert] parameters follow row order
[pass] expect: (O'Brien 30), got: (O'Brien 30)
[test] a query hands itself to the driver
[assert] sql-query->alist exposes the sql and the params
[pass] expect: (SELECT * FROM "t" WHERE "id" = ? (1)), got: (SELECT * FROM "t" WHERE "id" = ? (1))
------------------------------------------
[suite] Robustness test suite
[test] file read/write helpers
[assert] cleanup the temporary file
[pass] success running without errors
[assert] write-file-string returns the character count
[pass] expect: 14, got: 14
[assert] read-file-string returns exact contents
[pass] expect: line 1
line 2
, got: line 1
line 2
[test] shuffle-fy preserves the elements
[assert] single element list
[pass] expect: (1), got: (1)
[assert] empty list
[pass] expect: (), got: ()
[assert] a shuffled range is still the range
[pass] expect: (0 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 36 37 38 39 40 41 42 43 44 45 46 47 48 49), got: (0 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 36 37 38 39 40 41 42 43 44 45 46 47 48 49)
[assert] the same seed yields the same order
[pass] expect: (10 3 9 6 13 15 8 18 19 0 4 12 7 11 2 5 14 17 16 1), got: (10 3 9 6 13 15 8 18 19 0 4 12 7 11 2 5 14 17 16 1)
[test] base64-decode known vectors
[assert] padded two bytes
[pass] expect: fo, got: fo
[assert] hello world
[pass] expect: hello world, got: hello world
[assert] padded one byte
[pass] expect: f, got: f
[assert] empty string
[pass] expect: , got:
[assert] unpadded three bytes
[pass] expect: foo, got: foo
[test] base64-encode known vectors
[assert] hello
[pass] expect: aGVsbG8=, got: aGVsbG8=
[assert] empty string
[pass] expect: , got:
[assert] three bytes need no padding
[pass] expect: Zm9v, got: Zm9v
[assert] hello world
[pass] expect: aGVsbG8gd29ybGQ=, got: aGVsbG8gd29ybGQ=
[assert] two bytes need one padding char
[pass] expect: Zm8=, got: Zm8=
[assert] one byte needs two padding chars
[pass] expect: Zg==, got: Zg==
[test] shuffle-fy does not mutate its input
[assert] the original list is unchanged
[pass] expect: (1 2 3 4 5), got: (1 2 3 4 5)
[test] html escaping covers the HTML-significant characters
[assert] escaping is not idempotent
[pass] expect: &amp;, got: &amp;
[assert] angle brackets are escaped
[pass] expect: <script>, got: <script>
[assert] numeric character references are decoded
[pass] expect: '&, got: '&
[assert] uppercase legacy entities are decoded
[pass] expect: &<>", got: &<>"
[assert] ampersand is escaped
[pass] expect: a & b, got: a & b
[assert] malformed numeric references are untouched
[pass] expect: &#; &#x; � &#xg;, got: &#; &#x; � &#xg;
[assert] legacy entities are still decoded
[pass] expect: a/b*c$%, got: a/b*c$%
[assert] both quote styles are escaped
[pass] expect: "x" 'y', got: "x" 'y'
[assert] unknown entity left untouched
[pass] expect: &unknown;, got: &unknown;
[assert] slashes, stars, dollars and percent are left alone
[pass] expect: a/b*c$%, got: a/b*c$%
[test] SQL literal escaping
[assert] quote-sql-identifier wraps a symbol
[pass] expect: "select", got: "select"
[assert] value->sql-literal plain string
[pass] expect: 'hello', got: 'hello'
[assert] value->sql-literal escapes quotes
[pass] expect: 'O''Brien', got: 'O''Brien'
[assert] escape-sql-string doubles quotes
[pass] expect: O''Brien, got: O''Brien
[assert] quote-sql-identifier doubles embedded quotes
[pass] expect: "we""ird", got: "we""ird"
[assert] pair->sql-assignment keeps numbers raw
[pass] expect: age = 30, got: age = 30
[assert] pair->sql-assignment hyphenated column
[pass] expect: first_name = 'Josep', got: first_name = 'Josep'
[assert] pair->sql-assignment escapes quotes
[pass] expect: name = 'O''Brien', got: name = 'O''Brien'
[assert] value->sql-literal boolean true
[pass] expect: 1, got: 1
[assert] value->sql-literal number
[pass] expect: 42, got: 42
[assert] value->sql-literal boolean false
[pass] expect: 0, got: 0
[assert] escape-sql-string doubles backslashes on request
[pass] expect: a\\b''c, got: a\\b''c
[assert] escape-sql-string rejects NUL
[pass] expect: rejected, got: rejected
[test] base64 round trips
[assert] utf-8
[pass] expect: h?llo w?rld ?????, got: h?llo w?rld ?????
[assert] ascii
[pass] expect: hello world, got: hello world
[assert] newlines inside the payload
[pass] expect: line one
line two, got: line one
line two
[assert] embedded heredoc-looking terminator is safe
[pass] expect: x
EOFEOF
y, got: x
EOFEOF
y
[assert] whitespace in the encoded input is ignored
[pass] expect: hello, got: hello
------------------------------------------
[suite] SRFI re-exports
[test] srfi-2, 8, 11 and 26 syntactic forms
[assert] cute
[pass] expect: (2 3), got: (2 3)
[assert] and-let* failure
[pass] expect: #f, got: #f
[assert] let-values
[pass] expect: 7, got: 7
[assert] let*-values
[pass] expect: 2, got: 2
[assert] and-let* success
[pass] expect: ok, got: ok
[assert] cut
[pass] expect: 3, got: 3
[assert] receive
[pass] expect: (1 2), got: (1 2)
[test] srfi-19 date and time
[assert] current-date returns a date
[pass] expect: #t, got: #t
[assert] make-date returns a date
[pass] expect: #t, got: #t
[assert] date->string returns a string
[pass] expect: #t, got: #t
[test] match and pretty-print re-exports
[assert] pretty-print writes to a string
[pass] expect: #t, got: #t
[assert] match
[pass] expect: 3, got: 3
[test] srfi-111 boxes
[assert] set-box!
[pass] expect: 8, got: 8
[assert] box?
[pass] expect: #t, got: #t
[assert] box and unbox
[pass] expect: 7, got: 7
[test] srfi-1 list procedures
[assert] list-tabulate
[pass] expect: (0 1 4), got: (0 1 4)
[assert] fold
[pass] expect: 6, got: 6
[assert] delete-duplicates
[pass] expect: (1 2 3), got: (1 2 3)
[assert] reduce
[pass] expect: 6, got: 6
[assert] filter-map
[pass] expect: (1 9), got: (1 9)
[assert] zip
[pass] expect: ((1 a) (2 b)), got: ((1 a) (2 b))
[assert] take and drop
[pass] expect: ((1 2) (3 4)), got: ((1 2) (3 4))
[assert] lset-union
[pass] expect: (1 2 3), got: (1 2 3)
[assert] fold-right
[pass] expect: (1 2 3), got: (1 2 3)
[assert] count
[pass] expect: 2, got: 2
[test] native Guile hash tables are left untouched
[assert] core make-hash-table/hash-ref still work
[pass] expect: found, got: found
[test] srfi-43 vector procedures
[assert] vector-map receives the index
[pass] expect: #(0 2 6), got: #(0 2 6)
[assert] vector-for-each
[pass] expect: 6, got: 6
[assert] vector-index
[pass] expect: 2, got: 2
[assert] vector-fold
[pass] expect: 6, got: 6
[assert] vector-append
[pass] expect: #(1 2 3), got: #(1 2 3)
[assert] vector-count
[pass] expect: 2, got: 2
------------------------------------------
[suite] Prelude test suite
[test] assoc-ref-or-empty-str tests
[assert] empty alist
[pass] expect: , got:
[assert] key found - non-string value
[pass] expect: 2, got: 2
[assert] key is last element
[pass] expect: value, got: value
[assert] key is first element
[pass] expect: value, got: value
[assert] key found - string value
[pass] expect: hello, got: hello
[assert] key not found
[pass] expect: , got:
[test] non-empty-string? tests
[assert] non-empty-string? with whitespace
[pass] expect: #t, got: #t
[assert] non-empty-string? with a number
[pass] expect: #f, got: #f
[assert] non-empty-string? with #t (not a string)
[pass] expect: #f, got: #f
[assert] non-empty-string? with #f
[pass] expect: #f, got: #f
[assert] non-empty-string? with non-empty string
[pass] expect: #t, got: #t
[assert] non-empty-string? with empty string
[pass] expect: #f, got: #f
[test] alist-from-url-encoded-body
[assert] backslash character (%5C)
[pass] expect: ((winpath . C:\Users\)), got: ((winpath . C:\Users\))
[assert] plus sign (%2B) - often used for space, but distinct from actual '+'
[pass] expect: ((code . a+b)), got: ((code . a+b))
[assert] unicode characters (e.g., '?' - %C3%A9 in UTF-8)
[pass] expect: ((name . fianc?)), got: ((name . fianc?))
[assert] exclamation mark character (%21)
[pass] expect: ((warning . danger!)), got: ((warning . danger!))
[assert] only an ampersand
[pass] expect: (), got: ()
[assert] value with no key (unlikely but possible from split)
[pass] expect: (( . value)), got: (( . value))
[assert] empty key and empty value
[pass] expect: (), got: ()
[assert] literal equals sign stays part of the value
[pass] expect: ((q . a=b)), got: ((q . a=b))
[assert] colon character (%3A)
[pass] expect: ((protocol . http:)), got: ((protocol . http:))
[assert] multiple encoded characters in one value
[pass] expect: ((complex . a&b=c?d e)), got: ((complex . a&b=c?d e))
[assert] duplicate keys
[pass] expect: ((item . apple) (item . orange)), got: ((item . apple) (item . orange))
[assert] multiple keys, no equals sign
[pass] expect: ((key1 . ) (key2 . )), got: ((key1 . ) (key2 . ))
[assert] semicolon character (%3B)
[pass] expect: ((cookie . id;user)), got: ((cookie . id;user))
[assert] slash character (%2F)
[pass] expect: ((path . /usr/local)), got: ((path . /usr/local))
[assert] empty &-separated segments are skipped
[pass] expect: ((a . 1) (b . 2)), got: ((a . 1) (b . 2))
[assert] multiple key-value pairs
[pass] expect: ((name . Jane Doe) (age . 30)), got: ((name . Jane Doe) (age . 30))
[assert] dollar sign character (%24)
[pass] expect: ((amount . $100)), got: ((amount . $100))
[assert] empty body
[pass] expect: (), got: ()
[assert] single key, no equals sign
[pass] expect: ((key-only . )), got: ((key-only . ))
[assert] keys and values with special characters (URL-encoded)
[pass] expect: ((param_1 . value with spaces) (param/2 . another_value!)), got: ((param_1 . value with spaces) (param/2 . another_value!))
[assert] mixed valid and malformed pairs
[pass] expect: ((a . 1) (b . ) (c . 3)), got: ((a . 1) (b . ) (c . 3))
[assert] equals sign character (%3D)
[pass] expect: ((equation . x=y)), got: ((equation . x=y))
[assert] parentheses characters (%28, %29)
[pass] expect: ((func . f(x))), got: ((func . f(x)))
[assert] single key value pair
[pass] expect: ((name . John Doe)), got: ((name . John Doe))
[assert] key with no value
[pass] expect: ((key . )), got: ((key . ))
[assert] at symbol character (%40)
[pass] expect: ((email . test@example.com)), got: ((email . test@example.com))
[assert] question mark character (%3F)
[pass] expect: ((query . what?)), got: ((query . what?))
[assert] square brackets characters (%5B, %5D)
[pass] expect: ((array . [1,2])), got: ((array . [1,2]))
[assert] curly braces characters (%7B, %7D)
[pass] expect: ((json . {data})), got: ((json . {data}))
[assert] space character (%20)
[pass] expect: ((message . hello world)), got: ((message . hello world))
[assert] ampersand character (%26)
[pass] expect: ((data . one&two)), got: ((data . one&two))
[assert] comma character (%2C)
[pass] expect: ((list . a,b,c)), got: ((list . a,b,c))
[assert] hash/pound sign character (%23)
[pass] expect: ((tag . #important)), got: ((tag . #important))
[test] string-drop tests
[assert] string-drop-first-last-line single line
[pass] expect: , got:
[assert] string-drop-first-last-line empty input
[pass] expect: , got:
[assert] string-drop-first-last-line two lines
[pass] expect: , got:
[assert] string-drop-first-last single char
[pass] expect: a, got: a
[assert] string-drop-first-last normal case
[pass] expect: ell, got: ell
[assert] string-drop-first-last-line normal case
[pass] expect: middle line, got: middle line
[assert] string-drop-first-last two chars
[pass] expect: ab, got: ab
[assert] string-drop-first-last empty string
[pass] expect: , got:
[test] empty-string? tests
[assert] empty-string? with non-empty string
[pass] expect: #f, got: #f
[assert] empty-string? with whitespace
[pass] expect: #f, got: #f
[assert] empty-string? with empty string
[pass] expect: #t, got: #t
[test] assoc-ref-or tests
[assert] missing key defaults to #f
[pass] expect: #f, got: #f
[assert] found key
[pass] expect: 1, got: 1
[assert] missing key uses the given default
[pass] expect: missing, got: missing
[test] string-drop-first-last-n tests
[assert] n larger than length is clamped
[pass] expect: , got:
[assert] n = 0 drops only the last char
[pass] expect: hell, got: hell
[assert] negative n is clamped to zero
[pass] expect: hell, got: hell
[assert] drop one leading and the last char
[pass] expect: ell, got: ell
[assert] n at the boundary returns empty string
[pass] expect: , got:
[assert] drop two leading and the last char
[pass] expect: ll, got: ll
[assert] short strings are returned unaltered
[pass] expect: ab, got: ab
[test] alist-set tests
[assert] add a new key at the front
[pass] expect: ((c . 3) (a . 1)), got: ((c . 3) (a . 1))
[assert] replace an existing key in place
[pass] expect: ((a . 9) (b . 2)), got: ((a . 9) (b . 2))
[assert] the original alist is never mutated
[pass] expect: ((a . 1)), got: ((a . 1))
[test] assoc-lens tests
[assert] intermediate value is not an alist
[pass] expect: #f, got: #f
[assert] missing nested key
[pass] expect: #f, got: #f
[assert] nested lookup
[pass] expect: 1, got: 1
------------------------------------------
[suite] context-aware escaping
[test] JavaScript string literals
[assert] no slash survives, so </script is impossible
[pass] expect: #f, got: #f
[assert] BMP characters use \xHH
[pass] expect: caf\xE9, got: caf\xE9
[assert] a backslash is escaped, not left to combine
[pass] expect: a\x5Cb, got: a\x5Cb
[assert] a non-BMP character becomes a surrogate pair
[pass] expect: \uD83D\uDE00, got: \uD83D\uDE00
[assert] quotes and spaces become escapes
[pass] expect: O\x27Reilly\x20\x22x\x22, got: O\x27Reilly\x20\x22x\x22
[assert] alphanumerics stay readable
[pass] expect: abcXYZ019, got: abcXYZ019
[assert] an encoded value needs no further HTML escaping
[pass] expect: it\x27s\x20\x3C\x2Fscript\x3E, got: it\x27s\x20\x3C\x2Fscript\x3E
[assert] a newline cannot break the literal
[pass] expect: a\x0Ab, got: a\x0Ab
[assert] the line separator U+2028 is escaped
[pass] expect: a\u2028b, got: a\u2028b
[test] CSS values
[assert] a percent sign is escaped
[pass] expect: 100\000025 , got: 100\000025
[assert] a non-BMP character uses a six-digit escape
[pass] expect: \01F600 , got: \01F600
[assert] alphanumerics stay readable
[pass] expect: TimesNewRoman10px, got: TimesNewRoman10px
[assert] no function call survives
[pass] expect: #f, got: #f
[test] html-escape-context picks an encoder per position
[assert] javascript string
[pass] expect: a\x22b, got: a\x22b
[assert] quoted attribute
[pass] expect: a"b, got: a"b
[assert] unquoted attribute
[pass] expect: a b, got: a b
[assert] text is the default
[pass] expect: <b>, got: <b>
[assert] text
[pass] expect: <b>, got: <b>
[assert] an unknown context is an error
[pass] expect: rejected, got: rejected
[assert] css value
[pass] expect: a\000022 b, got: a\000022 b
[assert] url component
[pass] expect: a%2Fb%3Fc%3Dd%26e, got: a%2Fb%3Fc%3Dd%26e
[test] unquoted attribute values
[assert] whitespace and delimiters cannot end the value
[pass] expect: a b=c/d>e, got: a b=c/d>e
[assert] letters, digits, - _ and . pass through
[pass] expect: abc-1_2.3, got: abc-1_2.3
[assert] quotes are encoded rather than ended
[pass] expect: "', got: "'
[assert] a non-BMP character stays one reference
[pass] expect: 😀, got: 😀
[test] every encoder leaves the empty string alone
[assert] empty input, empty output
[pass] expect: ( ), got: ( )
[info] ran 7 tasks in: 0 seconds, 44645 microseconds
finished running tests
;;; note: source file ./src/kracht/prelude.scm
;;; newer than compiled /gnu/store/10jb7l516f6j7swgqshkg5fdc997zs3a-profile/lib/guile/3.0/site-ccache/kracht/prelude.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/kracht/trunk/src/kracht/prelude.scm.go
--------------------------------------------------------------
Maak: the infinitely extensible command runner
Loading tasks from Maak file: /etc/byggsteg/job-clone/kracht/trunk/maak.scm
Executing Maak tasks: test
--------------------------------------------------------------
=> Running Maak task: test
Run project's tests.