~ chicken-core (chicken-5) /tests/scrutiny.expected
Trap1;; numbers replaced with XXX by redact-gensyms.scm2;; prefixes: (tmp g scm:)34Warning: (scrutiny-tests.scm:XXX) - assignment to imported value binding `car'56Note: Test is always true7 In procedure `a',8 In procedure `b',9 In procedure `c',10 In conditional expression:1112 (if x 1 2)1314 Test condition has always true value of type:1516 fixnum1718Note: Test is always true19 In procedure `b',20 In conditional expression:2122 (if x 1 2)2324 Test condition has always true value of type:2526 true2728Warning: Branch values mismatch29 In file `scrutiny-tests.scm:XXX',30 In procedure `foo',31 In conditional expression:3233 (if x (scheme#values 1 2) (scheme#values 1 2 (scheme#+ (scheme#+ ...))))3435 The branches have different numbers of values.3637 The true branch returns 2 values:3839 (scheme#values 1 2)4041 The false branch returns 3 values:4243 (scheme#values 1 2 (scheme#+ (scheme#+ (scheme#+ ...))))4445Warning: Invalid argument46 In file `scrutiny-tests.scm:XXX',47 At the toplevel,48 In procedure call:4950 (bar 3 'a)5152 Argument #2 to procedure `bar' has an invalid type:5354 symbol5556 The expected type is:5758 number5960 This is the expression:6162 'a6364 Procedure `bar' has this type:6566 (#!rest number -> number)6768Warning: Wrong number of arguments69 In file `scrutiny-tests.scm:XXX',70 At the toplevel,71 In procedure call:7273 (scheme#string?)7475 Procedure `string?' is called with 0 arguments but 1 argument is expected.7677 Procedure `string?' from module `scheme' has this type:7879 (* --> boolean)8081Warning: Too many argument values82 In file `scrutiny-tests.scm:XXX',83 At the toplevel,84 In procedure call:8586 (chicken.base#print (scheme#values 1 2))8788 Argument #1 to procedure `print' returns 2 values but 1 is expected.8990 It is a call to `values' from module `scheme' which has this type:9192 (procedure (#!rest values) . *)9394 This is the expression:9596 (scheme#values 1 2)9798Warning: Not enough argument values99 In file `scrutiny-tests.scm:XXX',100 At the toplevel,101 In procedure call:102103 (chicken.base#print (scheme#values))104105 Argument #1 to procedure `print' does not return any values.106107 It is a call to `values' from module `scheme' which has this type:108109 (procedure (#!rest values) . *)110111 This is the expression:112113 (scheme#values)114115Warning: Invalid procedure116 In file `scrutiny-tests.scm:XXX',117 At the toplevel,118 In procedure call:119120 (x)121122 Variable `x18' is not a procedure.123124 It has this type:125126 fixnum127128Warning: Invalid argument129 In file `scrutiny-tests.scm:XXX',130 At the toplevel,131 In procedure call:132133 (scheme#+ 'a 'b)134135 Argument #1 to procedure `+' has an invalid type:136137 symbol138139 The expected type is:140141 number142143 This is the expression:144145 'a146147 Procedure `+' from module `scheme' has this type:148149 (#!rest number -> number)150151Warning: Invalid argument152 In file `scrutiny-tests.scm:XXX',153 At the toplevel,154 In procedure call:155156 (scheme#+ 'a 'b)157158 Argument #2 to procedure `+' has an invalid type:159160 symbol161162 The expected type is:163164 number165166 This is the expression:167168 'b169170 Procedure `+' from module `scheme' has this type:171172 (#!rest number -> number)173174Warning: Invalid assignment175 At the toplevel,176 In assignment:177178 (set! scheme#car 33)179180 Variable `car' is assigned invalid value.181182 The assigned value has this type:183184 fixnum185186 The declared type of `car' from module `scheme' is:187188 ((pair 'a *) -> 'a)189190Warning: Let binding to `gXXX' has 2 values191 In file `scrutiny-tests.scm:XXX',192 At the toplevel,193 In let expression:194195 (let ((gXXX (scheme#values 1 2))) (gXXX))196197 Variable `gXXX' is bound to an expression that returns 2 values.198199 It is a call to `values' from module `scheme' which has this type:200201 (procedure (#!rest values) . *)202203 This is the expression:204205 (scheme#values 1 2)206207Warning: Invalid procedure208 At the toplevel,209 In procedure call:210211 (gXXX)212213 Variable `gXXX' is not a procedure.214215 It has this type:216217 fixnum218219Note: Test is always true220 In procedure `foo',221 In conditional expression:222223 (if bar 3 (##core#undefined))224225 Test condition has always true value of type:226227 (-> *)228229Warning: Invalid argument230 In file `scrutiny-tests.scm:XXX',231 In procedure `foo2',232 In procedure call:233234 (scheme#string-append x "abc")235236 Argument #1 to procedure `string-append' has an invalid type:237238 number239240 The expected type is:241242 string243244 This is the expression:245246 x247248 Procedure `string-append' from module `scheme' has this type:249250 (#!rest string -> string)251252Warning: Invalid argument253 In file `scrutiny-tests.scm:XXX',254 At the toplevel,255 In procedure call:256257 (foo3 99)258259 Argument #1 to procedure `foo3' has an invalid type:260261 fixnum262263 The expected type is:264265 string266267 This is the expression:268269 99270271 Procedure `foo3' has this type:272273 (string -> string)274275Warning: Invalid argument276 In file `scrutiny-tests.scm:XXX',277 In procedure `foo4',278 In procedure call:279280 (scheme#+ x 1)281282 Argument #1 to procedure `+' has an invalid type:283284 string285286 The expected type is:287288 number289290 This is the expression:291292 x293294 Procedure `+' from module `scheme' has this type:295296 (#!rest number -> number)297298Warning: Invalid argument299 In file `scrutiny-tests.scm:XXX',300 In procedure `foo5',301 In procedure call:302303 (scheme#+ x 3)304305 Argument #1 to procedure `+' has an invalid type:306307 string308309 The expected type is:310311 number312313 This is the expression:314315 x316317 Procedure `+' from module `scheme' has this type:318319 (#!rest number -> number)320321Warning: Invalid argument322 In file `scrutiny-tests.scm:XXX',323 In procedure `foo6',324 In procedure call:325326 (scheme#+ x 3)327328 Argument #1 to procedure `+' has an invalid type:329330 string331332 The expected type is:333334 number335336 This is the expression:337338 x339340 Procedure `+' from module `scheme' has this type:341342 (#!rest number -> number)343344Warning: Invalid argument345 In file `scrutiny-tests.scm:XXX',346 At the toplevel,347 In procedure call:348349 (scheme#+ x 1)350351 Argument #1 to procedure `+' has an invalid type:352353 string354355 The expected type is:356357 number358359 This is the expression:360361 x362363 Procedure `+' from module `scheme' has this type:364365 (#!rest number -> number)366367Warning: Invalid argument368 In file `scrutiny-tests.scm:XXX',369 In procedure `foo10',370 In procedure call:371372 (foo9 x)373374 Argument #1 to procedure `foo9' has an invalid type:375376 number377378 The expected type is:379380 string381382 This is the expression:383384 x385386 Procedure `foo9' has this type:387388 (string -> symbol)389390Warning: Invalid argument391 In file `scrutiny-tests.scm:XXX',392 In procedure `foo10',393 In procedure call:394395 (scheme#+ x 1)396397 Argument #1 to procedure `+' has an invalid type:398399 string400401 The expected type is:402403 number404405 This is the expression:406407 x408409 Procedure `+' from module `scheme' has this type:410411 (#!rest number -> number)412413Warning: Type mismatch414 In file `scrutiny-tests.scm:XXX',415 In procedure `foo10',416 In expression:417418 (scheme#substring x 0 10)419420 Expression's declared and actual types do not match.421422 The declared type is:423424 pair425426 The actual type is:427428 string429430Warning: Invalid argument431 In file `scrutiny-tests.scm:XXX',432 In procedure `foo10',433 In procedure call:434435 (scheme#string-append (the pair (scheme#substring x 0 10)))436437 Argument #1 to procedure `string-append' has an invalid type:438439 pair440441 The expected type is:442443 string444445 This is the expression:446447 (the pair (scheme#substring x 0 10))448449 Procedure `string-append' from module `scheme' has this type:450451 (#!rest string -> string)452453Warning: Too many values454 In file `scrutiny-tests.scm:XXX',455 In procedure `foo10',456 In expression:457458 (scheme#values 1 2)459460 Expression returns too many values.461462 The expression returns 2 values but is declared to return:463464 *465466Warning: Not enough values467 In file `scrutiny-tests.scm:XXX',468 In procedure `foo10',469 In expression:470471 (scheme#values)472473 Expression returns 0 values but is declared to return:474475 *476477Warning: Invalid argument478 In file `scrutiny-tests.scm:XXX',479 In procedure `foo10',480 In procedure call:481482 (scheme#* x y)483484 Argument #1 to procedure `*' has an invalid type:485486 string487488 The expected type is:489490 number491492 This is the expression:493494 x495496 Procedure `*' from module `scheme' has this type:497498 (#!rest number -> number)499500Warning: Invalid argument501 In file `scrutiny-tests.scm:XXX',502 In module `foo',503 In procedure `blabla',504 In procedure call:505506 (scheme#+ 1 'x)507508 Argument #2 to procedure `+' has an invalid type:509510 symbol511512 The expected type is:513514 number515516 This is the expression:517518 'x519520 Procedure `+' from module `scheme' has this type:521522 (#!rest number -> number)523524Warning: Deprecated identifier `deprecated-procedure'525 At the toplevel,526 In expression:527528 deprecated-procedure529530 Use of deprecated identifier `deprecated-procedure'.531532Warning: Deprecated identifier `another-deprecated-procedure'533 At the toplevel,534 In expression:535536 another-deprecated-procedure537538 Use of deprecated identifier `another-deprecated-procedure'.539540 The suggested alternative is `replacement-procedure'.541542Warning: Invalid argument543 In file `scrutiny-tests.scm:XXX',544 At the toplevel,545 In procedure call:546547 (apply1 scheme#+ (scheme#list 'a 2 3))548549 Argument #2 to procedure `apply1' has an invalid type:550551 (list symbol fixnum fixnum)552553 The expected type is:554555 (list-of number)556557 It is a call to `list' from module `scheme' which has this type:558559 (#!rest * --> list)560561 This is the expression:562563 (scheme#list 'a 2 3)564565 Procedure `apply1' has this type:566567 ((#!rest 'a -> 'b) (list-of 'a) -> 'b)568569Warning: Invalid argument570 In file `scrutiny-tests.scm:XXX',571 At the toplevel,572 In procedure call:573574 (apply1 scheme#+ (scheme#cons 'a (scheme#cons 2 (scheme#cons 3 ...))))575576 Argument #2 to procedure `apply1' has an invalid type:577578 (list symbol fixnum fixnum)579580 The expected type is:581582 (list-of number)583584 It is a call to `cons' from module `scheme' which has this type:585586 ('a 'b --> (pair 'a 'b))587588 This is the expression:589590 (scheme#cons 'a (scheme#cons 2 (scheme#cons 3 '())))591592 Procedure `apply1' has this type:593594 ((#!rest 'a -> 'b) (list-of 'a) -> 'b)595596Note: Predicate is always true597 In file `scrutiny-tests.scm:XXX',598 At the toplevel,599 In procedure call:600601 (chicken.base#fixnum? x)602603 The predicate will always return true.604605 Procedure `fixnum?' from module `chicken.base' is a predicate for:606607 fixnum608609 The given argument has this type:610611 fixnum612613Note: Predicate is always false614 In file `scrutiny-tests.scm:XXX',615 At the toplevel,616 In procedure call:617618 (scheme#symbol? x)619620 The predicate will always return false.621622 Procedure `symbol?' from module `scheme' is a predicate for:623624 symbol625626 The given argument has this type:627628 (or char string)629630Note: Predicate is always false631 In file `scrutiny-tests.scm:XXX',632 At the toplevel,633 In procedure call:634635 (scheme#string? x)636637 The predicate will always return false.638639 Procedure `string?' from module `scheme' is a predicate for:640641 string642643 The given argument has this type:644645 (not (or char string))646647Note: Predicate is always false648 In file `scrutiny-tests.scm:XXX',649 At the toplevel,650 In procedure call:651652 (char-or-string? x)653654 The predicate will always return false.655656 Procedure `char-or-string?' is a predicate for:657658 (or char string)659660 The given argument has this type:661662 fixnum663664Note: Test is always false665 In file `scrutiny-tests.scm:XXX',666 At the toplevel,667 In conditional expression:668669 (if (char-or-string? x) (scheme#symbol? x) (scheme#string? x))670671 Test condition is always false.672673Note: Predicate is always false674 In file `scrutiny-tests.scm:XXX',675 At the toplevel,676 In procedure call:677678 (scheme#string? x)679680 The predicate will always return false.681682 Procedure `string?' from module `scheme' is a predicate for:683684 string685686 The given argument has this type:687688 fixnum689690Note: Predicate is always false691 In file `scrutiny-tests.scm:XXX',692 At the toplevel,693 In procedure call:694695 (scheme#symbol? x)696697 The predicate will always return false.698699 Procedure `symbol?' from module `scheme' is a predicate for:700701 symbol702703 The given argument has this type:704705 char706707Note: Predicate is always false708 In file `scrutiny-tests.scm:XXX',709 At the toplevel,710 In procedure call:711712 (scheme#string? x)713714 The predicate will always return false.715716 Procedure `string?' from module `scheme' is a predicate for:717718 string719720 The given argument has this type:721722 symbol723724Note: Predicate is always false725 In file `scrutiny-tests.scm:XXX',726 At the toplevel,727 In procedure call:728729 (scheme#symbol? x)730731 The predicate will always return false.732733 Procedure `symbol?' from module `scheme' is a predicate for:734735 symbol736737 The given argument has this type:738739 (or char string)740741Note: Predicate is always false742 In file `scrutiny-tests.scm:XXX',743 At the toplevel,744 In procedure call:745746 (scheme#string? x)747748 The predicate will always return false.749750 Procedure `string?' from module `scheme' is a predicate for:751752 string753754 The given argument has this type:755756 symbol757758Warning: Invalid argument759 In file `scrutiny-tests.scm:XXX',760 At the toplevel,761 In procedure call:762763 (f (scheme#list))764765 Argument #1 to procedure `f' has an invalid type:766767 null768769 The expected type is:770771 pair772773 It is a call to `list' from module `scheme' which has this type:774775 (#!rest * --> list)776777 This is the expression:778779 (scheme#list)780781 Procedure `f' has this type:782783 (pair -> *)784785Warning: Invalid argument786 In file `scrutiny-tests.scm:XXX',787 At the toplevel,788 In procedure call:789790 (f (scheme#list 1))791792 Argument #1 to procedure `f' has an invalid type:793794 (list fixnum)795796 The expected type is:797798 null799800 It is a call to `list' from module `scheme' which has this type:801802 (#!rest * --> list)803804 This is the expression:805806 (scheme#list 1)807808 Procedure `f' has this type:809810 (null -> *)811812Warning: Invalid argument813 In file `scrutiny-tests.scm:XXX',814 At the toplevel,815 In procedure call:816817 (f (scheme#cons 1 2))818819 Argument #1 to procedure `f' has an invalid type:820821 (pair fixnum fixnum)822823 The expected type is:824825 list826827 It is a call to `cons' from module `scheme' which has this type:828829 ('a 'b --> (pair 'a 'b))830831 This is the expression:832833 (scheme#cons 1 2)834835 Procedure `f' has this type:836837 (list -> *)838839Warning: Negative vector index840 In file `scrutiny-tests.scm:XXX',841 In procedure `vector-ref-warn1',842 In procedure call:843844 (scheme#vector-ref v1 -1)845846 Procedure `vector-ref' from module `scheme' is called with a negative index -1.847848Warning: Vector index out of range849 In file `scrutiny-tests.scm:XXX',850 In procedure `vector-ref-warn2',851 In procedure call:852853 (scheme#vector-ref v1 3)854855 Procedure `vector-ref' from module `scheme' is called with index `3' for a vector of length `3'.856857Warning: Vector index out of range858 In file `scrutiny-tests.scm:XXX',859 In procedure `vector-ref-warn3',860 In procedure call:861862 (scheme#vector-ref v1 4)863864 Procedure `vector-ref' from module `scheme' is called with index `4' for a vector of length `3'.865866Warning: Invalid argument867 In file `scrutiny-tests.scm:XXX',868 In procedure `vector-ref-standard-warn1',869 In procedure call:870871 (scheme#vector-ref v1 'bad)872873 Argument #2 to procedure `vector-ref' has an invalid type:874875 symbol876877 The expected type is:878879 fixnum880881 This is the expression:882883 'bad884885 Procedure `vector-ref' from module `scheme' has this type:886887 ((vector-of 'a) fixnum -> 'a)888889Warning: Negative vector index890 In file `scrutiny-tests.scm:XXX',891 In procedure `vector-set!-warn1',892 In procedure call:893894 (scheme#vector-set! v1 -1 'whatever)895896 Procedure `vector-set!' from module `scheme' is called with a negative index -1.897898Warning: Vector index out of range899 In file `scrutiny-tests.scm:XXX',900 In procedure `vector-set!-warn2',901 In procedure call:902903 (scheme#vector-set! v1 3 'whatever)904905 Procedure `vector-set!' from module `scheme' is called with index `3' for a vector of length `3'.906907Warning: Vector index out of range908 In file `scrutiny-tests.scm:XXX',909 In procedure `vector-set!-warn3',910 In procedure call:911912 (scheme#vector-set! v1 4 'whatever)913914 Procedure `vector-set!' from module `scheme' is called with index `4' for a vector of length `3'.915916Warning: Invalid argument917 In file `scrutiny-tests.scm:XXX',918 In procedure `vector-set!-standard-warn1',919 In procedure call:920921 (scheme#vector-set! v1 'bad 'whatever)922923 Argument #2 to procedure `vector-set!' has an invalid type:924925 symbol926927 The expected type is:928929 fixnum930931 This is the expression:932933 'bad934935 Procedure `vector-set!' from module `scheme' has this type:936937 (vector fixnum * -> undefined)938939Warning: Negative list index940 In file `scrutiny-tests.scm:XXX',941 In procedure `list-ref-warn1',942 In procedure call:943944 (scheme#list-ref l1 -1)945946 Procedure `list-ref' from module `scheme' is called with a negative index -1.947948Warning: Negative list index949 In file `scrutiny-tests.scm:XXX',950 In procedure `list-ref-warn2',951 In procedure call:952953 (scheme#list-ref l2 -1)954955 Procedure `list-ref' from module `scheme' is called with a negative index -1.956957Warning: Negative list index958 In file `scrutiny-tests.scm:XXX',959 In procedure `list-ref-warn3',960 In procedure call:961962 (scheme#list-ref l3 -1)963964 Procedure `list-ref' from module `scheme' is called with a negative index -1.965966Warning: List index out of range967 In file `scrutiny-tests.scm:XXX',968 In procedure `list-ref-warn4',969 In procedure call:970971 (scheme#list-ref l1 3)972973 Procedure `list-ref' from module `scheme' is called with index `3' for a list of length `3'.974975Warning: List index out of range976 In file `scrutiny-tests.scm:XXX',977 In procedure `list-ref-warn5',978 In procedure call:979980 (scheme#list-ref l1 4)981982 Procedure `list-ref' from module `scheme' is called with index `4' for a list of length `3'.983984Warning: Invalid argument985 In file `scrutiny-tests.scm:XXX',986 In procedure `list-ref-standard-warn1',987 In procedure call:988989 (scheme#list-ref l1 'bad)990991 Argument #2 to procedure `list-ref' has an invalid type:992993 symbol994995 The expected type is:996997 fixnum998999 This is the expression:10001001 'bad10021003 Procedure `list-ref' from module `scheme' has this type:10041005 ((list-of 'a) fixnum -> 'a)10061007Warning: Invalid argument1008 In file `scrutiny-tests.scm:XXX',1009 In procedure `list-ref-standard-warn2',1010 In procedure call:10111012 (scheme#list-ref l1 'bad)10131014 Argument #2 to procedure `list-ref' has an invalid type:10151016 symbol10171018 The expected type is:10191020 fixnum10211022 This is the expression:10231024 'bad10251026 Procedure `list-ref' from module `scheme' has this type:10271028 ((list-of 'a) fixnum -> 'a)10291030Warning: Invalid argument1031 In file `scrutiny-tests.scm:XXX',1032 In procedure `list-ref-standard-warn3',1033 In procedure call:10341035 (scheme#list-ref l2 'bad)10361037 Argument #2 to procedure `list-ref' has an invalid type:10381039 symbol10401041 The expected type is:10421043 fixnum10441045 This is the expression:10461047 'bad10481049 Procedure `list-ref' from module `scheme' has this type:10501051 ((list-of 'a) fixnum -> 'a)10521053Warning: Invalid argument1054 In file `scrutiny-tests.scm:XXX',1055 In procedure `list-ref-standard-warn4',1056 In procedure call:10571058 (scheme#list-ref l2 'bad)10591060 Argument #2 to procedure `list-ref' has an invalid type:10611062 symbol10631064 The expected type is:10651066 fixnum10671068 This is the expression:10691070 'bad10711072 Procedure `list-ref' from module `scheme' has this type:10731074 ((list-of 'a) fixnum -> 'a)10751076Warning: Invalid argument1077 In file `scrutiny-tests.scm:XXX',1078 In procedure `list-ref-type-warn1',1079 In procedure call:10801081 (chicken.base#add1 (scheme#list-ref l1 1))10821083 Argument #1 to procedure `add1' has an invalid type:10841085 symbol10861087 The expected type is:10881089 number10901091 It is a call to `list-ref' from module `scheme' which has this type:10921093 ((list-of 'a) fixnum -> 'a)10941095 This is the expression:10961097 (scheme#list-ref l1 1)10981099 Procedure `add1' from module `chicken.base' has this type:11001101 (number -> number)11021103Warning: Invalid argument1104 In file `scrutiny-tests.scm:XXX',1105 In procedure `list-ref-type-warn2',1106 In procedure call:11071108 (chicken.base#add1 (scheme#list-ref l2 1))11091110 Argument #1 to procedure `add1' has an invalid type:11111112 symbol11131114 The expected type is:11151116 number11171118 It is a call to `list-ref' from module `scheme' which has this type:11191120 ((list-of 'a) fixnum -> 'a)11211122 This is the expression:11231124 (scheme#list-ref l2 1)11251126 Procedure `add1' from module `chicken.base' has this type:11271128 (number -> number)11291130Warning: Invalid argument1131 In file `scrutiny-tests.scm:XXX',1132 In procedure `list-ref-type-warn3',1133 In procedure call:11341135 (chicken.base#add1 (scheme#list-ref l3 1))11361137 Argument #1 to procedure `add1' has an invalid type:11381139 symbol11401141 The expected type is:11421143 number11441145 It is a call to `list-ref' from module `scheme' which has this type:11461147 ((list-of 'a) fixnum -> 'a)11481149 This is the expression:11501151 (scheme#list-ref l3 1)11521153 Procedure `add1' from module `chicken.base' has this type:11541155 (number -> number)11561157Warning: Invalid argument1158 In file `scrutiny-tests.scm:XXX',1159 In procedure `append-result-type-warn1',1160 In procedure call:11611162 (chicken.base#add1 (scheme#list-ref l1 1))11631164 Argument #1 to procedure `add1' has an invalid type:11651166 symbol11671168 The expected type is:11691170 number11711172 It is a call to `list-ref' from module `scheme' which has this type:11731174 ((list-of 'a) fixnum -> 'a)11751176 This is the expression:11771178 (scheme#list-ref l1 1)11791180 Procedure `add1' from module `chicken.base' has this type:11811182 (number -> number)11831184Warning: Invalid argument1185 In file `scrutiny-tests.scm:XXX',1186 In procedure `append-result-type-warn2',1187 In procedure call:11881189 (chicken.base#add1 (scheme#list-ref l3 3))11901191 Argument #1 to procedure `add1' has an invalid type:11921193 symbol11941195 The expected type is:11961197 number11981199 It is a call to `list-ref' from module `scheme' which has this type:12001201 ((list-of 'a) fixnum -> 'a)12021203 This is the expression:12041205 (scheme#list-ref l3 3)12061207 Procedure `add1' from module `chicken.base' has this type:12081209 (number -> number)12101211Warning: redefinition of standard binding: scheme#car