~ chicken-core (master) /tests/scrutinizer-message-format.expected
Trap1;; numbers replaced with XXX by redact-gensyms.scm2;; prefixes: (tmp g scm: a b)34Warning: literal in operator position: (1 2)56Warning: literal in operator position: (1 2)78Warning: Wrong number of arguments9 In file `test-scrutinizer-message-format.scm:XXX',10 In procedure `r-proc-call-argument-count-mismatch',11 In procedure call:1213 (scheme#cons '())1415 Procedure `cons' is called with 1 argument but 2 arguments are expected.1617 Procedure `cons' from module `scheme' has this type:1819 ('a 'b --> (pair 'a 'b))2021Warning: Invalid argument22 In file `test-scrutinizer-message-format.scm:XXX',23 In procedure `r-proc-call-argument-type-mismatch',24 In procedure call:2526 (scheme#length 'symbol)2728 Argument #1 to procedure `length' has an invalid type:2930 symbol3132 The expected type is:3334 list3536 This is the expression:3738 'symbol3940 Procedure `length' from module `scheme' has this type:4142 (list -> fixnum)4344Warning: Too many argument values45 In file `test-scrutinizer-message-format.scm:XXX',46 In procedure `r-proc-call-argument-value-count',47 In procedure call:4849 (scheme#list (chicken.time#cpu-time))5051 Argument #1 to procedure `list' returns 2 values but 1 is expected.5253 It is a call to `cpu-time' from module `chicken.time' which has this type:5455 (-> fixnum fixnum)5657 This is the expression:5859 (chicken.time#cpu-time)6061Warning: Not enough argument values62 In file `test-scrutinizer-message-format.scm:XXX',63 In procedure `r-proc-call-argument-value-count',64 In procedure call:6566 (scheme#vector (scheme#values))6768 Argument #1 to procedure `vector' does not return any values.6970 It is a call to `values' from module `scheme' which has this type:7172 (procedure (#!rest values) . *)7374 This is the expression:7576 (scheme#values)7778Warning: Let binding to `gXXX' has zero values79 In file `test-scrutinizer-message-format.scm:XXX',80 In procedure `r-proc-call-argument-value-count',81 In let expression:8283 (let ((gXXX (scheme#values))) (gXXX))8485 Variable `gXXX' is bound to an expression that returns 0 values.8687 It is a call to `values' from module `scheme' which has this type:8889 (procedure (#!rest values) . *)9091 This is the expression:9293 (scheme#values)9495Warning: Branch values mismatch96 In file `test-scrutinizer-message-format.scm:XXX',97 In procedure `r-cond-branch-value-count-mismatch',98 In conditional expression:99100 (if (the * 1) 1 (scheme#values 1 2))101102 The branches have different numbers of values.103104 The true branch returns 1 value:105106 1107108 The false branch returns 2 values:109110 (scheme#values 1 2)111112Warning: Invalid procedure113 In procedure `r-invalid-called-procedure-type',114 In procedure call:115116 (1 2)117118 The procedure expression does not appear to be a callable.119120 This is the expression:121122 1123124 The expected type is:125126 (* -> *)127128 The actual type is:129130 fixnum131132Note: Predicate is always true133 In file `test-scrutinizer-message-format.scm:XXX',134 In procedure `r-pred-call-always-true',135 In procedure call:136137 (scheme#list? '())138139 The predicate will always return true.140141 Procedure `list?' from module `scheme' is a predicate for:142143 list144145 The given argument has this type:146147 null148149Note: Predicate is always false150 In file `test-scrutinizer-message-format.scm:XXX',151 In procedure `r-pred-call-always-false',152 In procedure call:153154 (scheme#symbol? 1)155156 The predicate will always return false.157158 Procedure `symbol?' from module `scheme' is a predicate for:159160 symbol161162 The given argument has this type:163164 fixnum165166Note: Test is always true167 In procedure `r-cond-test-always-true',168 In conditional expression:169170 (if 'symbol 1 (##core#undefined))171172 Test condition has always true value of type:173174 symbol175176Note: Test is always false177 In procedure `r-cond-test-always-false',178 In conditional expression:179180 (if #f 1 (##core#undefined))181182 Test condition is always false.183184Warning: Type mismatch185 In procedure `r-type-mismatch-in-the',186 In expression:187188 1189190 Expression's declared and actual types do not match.191192 The declared type is:193194 symbol195196 The actual type is:197198 fixnum199200Warning: Not enough values201 In file `test-scrutinizer-message-format.scm:XXX',202 In procedure `r-zero-values-for-the',203 In expression:204205 (scheme#values)206207 Expression returns 0 values but is declared to return:208209 symbol210211Warning: Too many values212 In file `test-scrutinizer-message-format.scm:XXX',213 In procedure `r-too-many-values-for-the',214 In expression:215216 (scheme#values 1 2)217218 Expression returns too many values.219220 The expression returns 2 values but is declared to return:221222 symbol223224Warning: Type mismatch225 In file `test-scrutinizer-message-format.scm:XXX',226 In procedure `r-too-many-values-for-the',227 In expression:228229 (scheme#values 1 2)230231 Expression's declared and actual types do not match.232233 The declared type is:234235 symbol236237 The actual type is:238239 fixnum240241Warning: Invalid assignment242 In procedure `r-toplevel-var-assignment-type-mismatch',243 In assignment:244245 (set! foo 1)246247 Variable `foo' is assigned invalid value.248249 The assigned value has this type:250251 fixnum252253 The declared type of `foo' is:254255 boolean256257Warning: Deprecated identifier `deprecated-foo'258 In procedure `r-deprecated-identifier',259 In expression:260261 deprecated-foo262263 Use of deprecated identifier `deprecated-foo'.264265Warning: Deprecated identifier `deprecated-foo2'266 In procedure `r-deprecated-identifier',267 In expression:268269 deprecated-foo2270271 Use of deprecated identifier `deprecated-foo2'.272273 The suggested alternative is `foo'.274275Warning: Invalid assignment276 At the toplevel,277 In assignment:278279 (set! foo 1)280281 Variable `foo' is assigned invalid value.282283 The assigned value has this type:284285 fixnum286287 The declared type of `foo' is:288289 boolean290291Warning: Negative list index292 In file `test-scrutinizer-message-format.scm:XXX',293 In procedure `list-ref-negative-index',294 In procedure call:295296 (scheme#list-ref '() -1)297298 Procedure `list-ref' from module `scheme' is called with a negative index -1.299300Warning: List index out of range301 In file `test-scrutinizer-message-format.scm:XXX',302 In procedure `list-ref-out-of-range',303 In procedure call:304305 (scheme#list-ref '() 1)306307 Procedure `list-ref' from module `scheme' is called with index `1' for a list of length `0'.308309Warning: Invalid argument310 In file `test-scrutinizer-message-format.scm:XXX',311 In procedure `append-invalid-arg',312 In procedure call:313314 (scheme#append 1 (scheme#list 1))315316 Argument #1 to procedure `append' has an invalid type:317318 fixnum319320 The expected type is:321322 list323324 This is the expression:325326 1327328 Procedure `append' from module `scheme' has this type:329330 (#!rest * -> *)331332Warning: Negative vector index333 In file `test-scrutinizer-message-format.scm:XXX',334 In procedure `vector-ref-out-of-range',335 In procedure call:336337 (scheme#vector-ref (scheme#vector) -1)338339 Procedure `vector-ref' from module `scheme' is called with a negative index -1.340341Warning: Wrong number of arguments342 In file `test-scrutinizer-message-format.scm:XXX',343 In module `m',344 In procedure `toplevel-foo',345 In procedure `local-bar',346 In procedure `r-proc-call-argument-count-mismatch',347 In procedure call:348349 (scheme#cons '())350351 Procedure `cons' is called with 1 argument but 2 arguments are expected.352353 Procedure `cons' from module `scheme' has this type:354355 ('a 'b --> (pair 'a 'b))356357Warning: Invalid argument358 In file `test-scrutinizer-message-format.scm:XXX',359 In module `m',360 In procedure `toplevel-foo',361 In procedure `local-bar',362 In procedure `r-proc-call-argument-type-mismatch',363 In procedure call:364365 (scheme#length 'symbol)366367 Argument #1 to procedure `length' has an invalid type:368369 symbol370371 The expected type is:372373 list374375 This is the expression:376377 'symbol378379 Procedure `length' from module `scheme' has this type:380381 (list -> fixnum)382383Warning: Too many argument values384 In file `test-scrutinizer-message-format.scm:XXX',385 In module `m',386 In procedure `toplevel-foo',387 In procedure `local-bar',388 In procedure `r-proc-call-argument-value-count',389 In procedure call:390391 (scheme#list (chicken.time#cpu-time))392393 Argument #1 to procedure `list' returns 2 values but 1 is expected.394395 It is a call to `cpu-time' from module `chicken.time' which has this type:396397 (-> fixnum fixnum)398399 This is the expression:400401 (chicken.time#cpu-time)402403Warning: Not enough argument values404 In file `test-scrutinizer-message-format.scm:XXX',405 In module `m',406 In procedure `toplevel-foo',407 In procedure `local-bar',408 In procedure `r-proc-call-argument-value-count',409 In procedure call:410411 (scheme#vector (scheme#values))412413 Argument #1 to procedure `vector' does not return any values.414415 It is a call to `values' from module `scheme' which has this type:416417 (procedure (#!rest values) . *)418419 This is the expression:420421 (scheme#values)422423Warning: Branch values mismatch424 In file `test-scrutinizer-message-format.scm:XXX',425 In module `m',426 In procedure `toplevel-foo',427 In procedure `local-bar',428 In procedure `r-cond-branch-value-count-mismatch',429 In conditional expression:430431 (if (the * 1) 1 (chicken.time#cpu-time))432433 The branches have different numbers of values.434435 The true branch returns 1 value:436437 1438439 The false branch returns 2 values:440441 (chicken.time#cpu-time)442443Warning: Invalid procedure444 In file `test-scrutinizer-message-format.scm:XXX',445 In module `m',446 In procedure `toplevel-foo',447 In procedure `local-bar',448 In procedure `r-invalid-called-procedure-type',449 In procedure `variable',450 In procedure call:451452 (m#foo2 2)453454 Variable `foo2' from module `m' is not a procedure.455456 It has this type:457458 boolean459460Warning: Invalid procedure461 In module `m',462 In procedure `toplevel-foo',463 In procedure `local-bar',464 In procedure `r-invalid-called-procedure-type',465 In procedure `non-variable',466 In procedure call:467468 (1 2)469470 The procedure expression does not appear to be a callable.471472 This is the expression:473474 1475476 The expected type is:477478 (* -> *)479480 The actual type is:481482 fixnum483484Note: Predicate is always true485 In file `test-scrutinizer-message-format.scm:XXX',486 In module `m',487 In procedure `toplevel-foo',488 In procedure `local-bar',489 In procedure `r-pred-call-always-true',490 In procedure call:491492 (scheme#list? '())493494 The predicate will always return true.495496 Procedure `list?' from module `scheme' is a predicate for:497498 list499500 The given argument has this type:501502 null503504Note: Predicate is always false505 In file `test-scrutinizer-message-format.scm:XXX',506 In module `m',507 In procedure `toplevel-foo',508 In procedure `local-bar',509 In procedure `r-pred-call-always-false',510 In procedure call:511512 (scheme#symbol? 1)513514 The predicate will always return false.515516 Procedure `symbol?' from module `scheme' is a predicate for:517518 symbol519520 The given argument has this type:521522 fixnum523524Note: Test is always true525 In file `test-scrutinizer-message-format.scm:XXX',526 In module `m',527 In procedure `toplevel-foo',528 In procedure `local-bar',529 In procedure `r-cond-test-always-true',530 In conditional expression:531532 (if (scheme#length '()) 1 (##core#undefined))533534 Test condition has always true value of type:535536 fixnum537538Note: Test is always false539 In module `m',540 In procedure `toplevel-foo',541 In procedure `local-bar',542 In procedure `r-cond-test-always-false',543 In conditional expression:544545 (if #f 1 (##core#undefined))546547 Test condition is always false.548549Warning: Type mismatch550 In module `m',551 In procedure `toplevel-foo',552 In procedure `local-bar',553 In procedure `r-type-mismatch-in-the',554 In expression:555556 1557558 Expression's declared and actual types do not match.559560 The declared type is:561562 symbol563564 The actual type is:565566 fixnum567568Warning: Not enough values569 In file `test-scrutinizer-message-format.scm:XXX',570 In module `m',571 In procedure `toplevel-foo',572 In procedure `local-bar',573 In procedure `r-zero-values-for-the',574 In expression:575576 (scheme#values)577578 Expression returns 0 values but is declared to return:579580 symbol581582Warning: Too many values583 In file `test-scrutinizer-message-format.scm:XXX',584 In module `m',585 In procedure `toplevel-foo',586 In procedure `local-bar',587 In procedure `r-too-many-values-for-the',588 In expression:589590 (scheme#values 1 2)591592 Expression returns too many values.593594 The expression returns 2 values but is declared to return:595596 symbol597598Warning: Type mismatch599 In file `test-scrutinizer-message-format.scm:XXX',600 In module `m',601 In procedure `toplevel-foo',602 In procedure `local-bar',603 In procedure `r-too-many-values-for-the',604 In expression:605606 (scheme#values 1 2)607608 Expression's declared and actual types do not match.609610 The declared type is:611612 symbol613614 The actual type is:615616 fixnum617618Warning: Invalid assignment619 In module `m',620 In procedure `toplevel-foo',621 In procedure `local-bar',622 In procedure `r-toplevel-var-assignment-type-mismatch',623 In assignment:624625 (set! m#foo2 1)626627 Variable `foo2' is assigned invalid value.628629 The assigned value has this type:630631 fixnum632633 The declared type of `foo2' from module `m' is:634635 boolean636637Warning: Deprecated identifier `deprecated-foo'638 In module `m',639 In procedure `toplevel-foo',640 In procedure `local-bar',641 In procedure `r-deprecated-identifier',642 In expression:643644 m#deprecated-foo645646 Use of deprecated identifier `deprecated-foo' from module `m'.647648Warning: Deprecated identifier `deprecated-foo2'649 In module `m',650 In procedure `toplevel-foo',651 In procedure `local-bar',652 In procedure `r-deprecated-identifier',653 In expression:654655 m#deprecated-foo2656657 Use of deprecated identifier `deprecated-foo2' from module `m'.658659 The suggested alternative is `foo'.660661Warning: Let binding to `a' has zero values662 In file `test-scrutinizer-message-format.scm:XXX',663 In module `m',664 In procedure `toplevel-foo',665 In procedure `local-bar',666 In procedure `r-let-value-count-invalid',667 In procedure `zero-values-for-let',668 In let expression:669670 (let ((a (scheme#values))) a)671672 Variable `a' is bound to an expression that returns 0 values.673674 It is a call to `values' from module `scheme' which has this type:675676 (procedure (#!rest values) . *)677678 This is the expression:679680 (scheme#values)681682Warning: Let binding to `a' has 2 values683 In file `test-scrutinizer-message-format.scm:XXX',684 In module `m',685 In procedure `toplevel-foo',686 In procedure `local-bar',687 In procedure `r-let-value-count-invalid',688 In procedure `too-many-values-for-let',689 In let expression:690691 (let ((a (scheme#values 1 2))) a)692693 Variable `a' is bound to an expression that returns 2 values.694695 It is a call to `values' from module `scheme' which has this type:696697 (procedure (#!rest values) . *)698699 This is the expression:700701 (scheme#values 1 2)702703Warning: Zero values for conditional704 In file `test-scrutinizer-message-format.scm:XXX',705 In module `m',706 In procedure `toplevel-foo',707 In procedure `local-bar',708 In procedure `r-conditional-value-count-invalid',709 In procedure `zero-values-for-conditional',710 In conditional:711712 (if (scheme#values) 1 (##core#undefined))713714 The test expression returns 0 values.715716 It is a call to `values' from module `scheme' which has this type:717718 (procedure (#!rest values) . *)719720 This is the expression:721722 (scheme#values)723724Warning: Too many values for conditional725 In file `test-scrutinizer-message-format.scm:XXX',726 In module `m',727 In procedure `toplevel-foo',728 In procedure `local-bar',729 In procedure `r-conditional-value-count-invalid',730 In procedure `too-many-values-for-conditional',731 In conditional:732733 (if (scheme#values (the * 1) 2) 1 (##core#undefined))734735 The test expression returns 2 values.736737 It is a call to `values' from module `scheme' which has this type:738739 (procedure (#!rest values) . *)740741 This is the expression:742743 (scheme#values (the * 1) 2)744745Warning: Assignment to `foo' has zero values746 In file `test-scrutinizer-message-format.scm:XXX',747 In module `m',748 In procedure `toplevel-foo',749 In procedure `local-bar',750 In procedure `r-assignment-value-count-invalid',751 In procedure `zero-values-for-assignment',752 In assignment:753754 (set! m#foo (scheme#values))755756 Variable `foo' is assigned from expression that returns 0 values.757758 It is a call to `values' from module `scheme' which has this type:759760 (procedure (#!rest values) . *)761762 This is the expression:763764 (scheme#values)765766Warning: Assignment to `foo' has 2 values767 In file `test-scrutinizer-message-format.scm:XXX',768 In module `m',769 In procedure `toplevel-foo',770 In procedure `local-bar',771 In procedure `r-assignment-value-count-invalid',772 In procedure `too-many-values-for-assignment',773 In assignment:774775 (set! m#foo (scheme#values #t 2))776777 Variable `foo' is assigned from expression that returns 2 values.778779 It is a call to `values' from module `scheme' which has this type:780781 (procedure (#!rest values) . *)782783 This is the expression:784785 (scheme#values #t 2)786787Warning: Negative list index788 In file `test-scrutinizer-message-format.scm:XXX',789 In module `m',790 In procedure `toplevel-foo',791 In procedure `local-bar',792 In procedure `list-ref-negative-index',793 In procedure call:794795 (scheme#list-ref '() -1)796797 Procedure `list-ref' from module `scheme' is called with a negative index -1.798799Warning: List index out of range800 In file `test-scrutinizer-message-format.scm:XXX',801 In module `m',802 In procedure `toplevel-foo',803 In procedure `local-bar',804 In procedure `list-ref-out-of-range',805 In procedure call:806807 (scheme#list-ref '() 1)808809 Procedure `list-ref' from module `scheme' is called with index `1' for a list of length `0'.810811Warning: Invalid argument812 In file `test-scrutinizer-message-format.scm:XXX',813 In module `m',814 In procedure `toplevel-foo',815 In procedure `local-bar',816 In procedure `append-invalid-arg',817 In procedure call:818819 (scheme#append 1 (scheme#list 1))820821 Argument #1 to procedure `append' has an invalid type:822823 fixnum824825 The expected type is:826827 list828829 This is the expression:830831 1832833 Procedure `append' from module `scheme' has this type:834835 (#!rest * -> *)836837Warning: Negative vector index838 In file `test-scrutinizer-message-format.scm:XXX',839 In module `m',840 In procedure `toplevel-foo',841 In procedure `local-bar',842 In procedure `vector-ref-out-of-range',843 In procedure call:844845 (scheme#vector-ref (scheme#vector) -1)846847 Procedure `vector-ref' from module `scheme' is called with a negative index -1.848849Note: Predicate is always true850 In file `test-scrutinizer-message-format.scm:XXX',851 In module `m',852 In procedure `toplevel-foo',853 In procedure `local-bar',854 In procedure `r-cond-test-always-true-with-pred',855 In procedure call:856857 (scheme#symbol? 'symbol)858859 The predicate will always return true.860861 Procedure `symbol?' from module `scheme' is a predicate for:862863 symbol864865 The given argument has this type:866867 symbol868869Note: Test is always true870 In file `test-scrutinizer-message-format.scm:XXX',871 In module `m',872 In procedure `toplevel-foo',873 In procedure `local-bar',874 In procedure `r-cond-test-always-true-with-pred',875 In conditional expression:876877 (if (scheme#symbol? 'symbol) 1 (##core#undefined))878879 Test condition has always true value of type:880881 true882883Note: Predicate is always false884 In file `test-scrutinizer-message-format.scm:XXX',885 In module `m',886 In procedure `toplevel-foo',887 In procedure `local-bar',888 In procedure `r-cond-test-always-false-with-pred',889 In procedure call:890891 (scheme#symbol? 1)892893 The predicate will always return false.894895 Procedure `symbol?' from module `scheme' is a predicate for:896897 symbol898899 The given argument has this type:900901 fixnum902903Note: Test is always false904 In file `test-scrutinizer-message-format.scm:XXX',905 In module `m',906 In procedure `toplevel-foo',907 In procedure `local-bar',908 In procedure `r-cond-test-always-false-with-pred',909 In conditional expression:910911 (if (scheme#symbol? 1) 1 (##core#undefined))912913 Test condition is always false.914915Error: No typecase match916 In file `test-scrutinizer-message-format.scm:XXX',917 In module `m',918 In procedure `toplevel-foo',919 In procedure `local-bar',920 In procedure `fail-compiler-typecase',921 In `compiler-typecase' expression:922923 (compiler-typecase gXXX (symbol 1) (list 2) (else (##core#undefined)))924925 Tested expression does not match any case.926927 The expression has this type:928929 fixnum930931 The specified type cases are these:932933 symbol934935 list