racket/pkgs/racket-test/tests
Robby Findler 36b3493e45 Change contracts of the form (-> any/c ... any) to not be flat contracts
The issue is what happens when the actual function has other arities.
For example, if the function were (λ (x [y 1]) y) then it is not okay
to simply check if procedure-arity-includes? of 1 is true (what the
code used to do) because then when the function is applied to 2
arguments, the call won't fail like it should. It is possible to check
and reject functions that don't have exactly the right arity, but if
the contract were (-> string? any), then the function would have been
allowed and only when the extra argument is supplied would the error
occur. So, this commit makes it so that (-> any/c any) is like
(-> string? any), but with the optimization that if the procedure
accepts only one argument, then no wrapper is created.

This is a backwards incompatible change because it used to be the
case that (flat-contract? (-> any)) returned #t and it now returns #f.
2016-01-02 17:29:58 -06:00
..
file pathlist-closure, tar, and tar-gzip: add #:path-filter 2016-01-01 13:52:37 -07:00
future add more accurate timeouts 2015-05-27 09:35:05 -05:00
generic Fix generics tests for hashing change. 2015-08-09 10:50:50 -05:00
help remove the "racket-pkgs" directory layer 2014-12-08 05:22:59 -07:00
json bytes->jsexpr: toss exn:fail:contract? when given invalid UTF-8 2015-05-12 12:45:10 -06:00
launcher remove the "racket-pkgs" directory layer 2014-12-08 05:22:59 -07:00
match Rename to make it clear what to run. 2015-12-29 16:01:22 -05:00
openssl remove the "racket-pkgs" directory layer 2014-12-08 05:22:59 -07:00
pkg Finally fix the concurrency in this test. 2015-11-24 17:20:53 -05:00
racket Change contracts of the form (-> any/c ... any) to not be flat contracts 2016-01-02 17:29:58 -06:00
setup fix relative-path discovery for case-normalized paths 2015-11-16 12:55:19 -07:00
stxparse syntax/parse: add test for non-tilde pattern expander 2015-10-16 18:03:40 -04:00
syntax free-vars: add mode that also reports module-bound variables 2015-12-07 10:42:12 -06:00
units Add test case 2015-09-01 11:46:40 -05:00
utils remove the "racket-pkgs" directory layer 2014-12-08 05:22:59 -07:00
xml remove the "racket-pkgs" directory layer 2014-12-08 05:22:59 -07:00
info.rkt remove the "racket-pkgs" directory layer 2014-12-08 05:22:59 -07:00
run-automated-tests.rkt remove the "racket-pkgs" directory layer 2014-12-08 05:22:59 -07:00
stress.rkt remove the "racket-pkgs" directory layer 2014-12-08 05:22:59 -07:00
zo-path.rkt make tests/zo-path inspect all installation-scope packages 2015-12-11 19:27:57 -07:00
zo-size.rkt remove the "racket-pkgs" directory layer 2014-12-08 05:22:59 -07:00