Commit Graph

3049 Commits

Author SHA1 Message Date
Asumu Takikawa
ee191531e6 Add pretty-printing capability for TR types
- Internally convert types to s-expressions before printing
  - Pretty print based on s-expression representation

original commit: 60ea93a264022f4cca72173c930b9c8bfe3e39bf
2014-01-13 15:30:38 -05:00
Asumu Takikawa
69df7f2664 Move chomp function into its own util file
original commit: 4d448785cd3a256dccb5b84a59170a2b4dd0b41c
2014-01-13 15:30:38 -05:00
Eric Dobson
7c00a7d443 Fix unary / optimizations.
original commit: aa3505d9374b48d6d273c141c178d760d2629871
2014-01-13 09:34:40 -08:00
Eric Dobson
63a1f89025 Fix bindings of unboxed complex float functions.
Closes PR 12475.
Closes PR 14284.

original commit: c60b31f0d19ef2a37adb654b0e5fa9178ce62f4d
2014-01-13 09:34:40 -08:00
Asumu Takikawa
63a8793faa Make kw-subtypes* consistent with s and t ordering
Subtyping functions should take the lower type s
first and upper type t second

original commit: cb885b3b55c932f95098413906d6cf3186a4befd
2014-01-13 11:36:55 -05:00
Asumu Takikawa
905d355065 Fix subtyping for keyword function types
Closes PR 14252
Closes PR 14257

original commit: 0efd90f846913d87aba53d9d73483960a98e63a8
2014-01-13 11:36:55 -05:00
Asumu Takikawa
5e75b2c945 Add "when to add type annotations?" to TR Guide
Based on a discussion from PR 14244

original commit: d202f415d95ff04e295be101db59402489dc9bfa
2014-01-12 23:11:01 -05:00
Eric Dobson
90d9b12f26 Ensure that we coerce to double flonums.
original commit: 2076199838a8de2527ba241ef8e564ae5cfd385a
2014-01-12 13:22:14 -08:00
Eric Dobson
9ae20f77b8 Add new known bug.
original commit: 7c945d36c06589cf93e68c6f633c50749cb7efa4
2014-01-12 13:21:13 -08:00
Eric Dobson
24eac377cd Mark TR exp bug as fixed.
original commit: 97158e9e6f56e81044523064b3ec292505c5f41e
2014-01-12 12:54:00 -08:00
Eric Dobson
9634b1c8a8 Fixup anyvalue handling in call-with-values.
Closes PR 14214.

original commit: 960da4579a66aa0090dbf5ef5db35f052ec5e824
2014-01-12 09:50:50 -08:00
Eric Dobson
8ebfb53cd2 Reduce duplication in init-env code and clean up its interface.
original commit: 695f73bad765be104296bda63ebb9dbdea5d6b6a
2014-01-12 09:46:22 -08:00
Eric Dobson
0e57618c26 Improve compile-omit-paths for typed-racket tests.
original commit: ceb819a67b5ddce4a1e584f2e36f6035e6d7efaa
2014-01-11 12:30:01 -08:00
Eric Dobson
3163c4e204 Make tests have better names and remove duplicates.
original commit: 775dd1509de40971935a9a70ca3ad8b59037fc8e
2014-01-11 12:30:01 -08:00
Eric Dobson
efcca72de7 Simplify special-env-typecheck-tests and give them better names.
original commit: 0e8cf664f4b91a210ca695ba604fd9a043b5c8e4
2014-01-11 12:30:00 -08:00
Eric Dobson
97fbd7827e Make tr unit tests not run TR printer on test creation.
This makes it so that only running a subset of the tests is faster.

original commit: ffe0aa4a5d8ca80696dac6db0a6e7c508174ac40
2014-01-11 12:30:00 -08:00
Eric Dobson
fd0d7b1289 Make interactive tests faster and support fresh namespaces.
Cuts off about 5-10% of unit test time.
Reuse existing module registry that is shared with all the other tests.
Fresh namespaces means that changes in one test do not affect other
tests.
Only bring in typed/racket/base so that it loads faster.

original commit: 7a1ca9f124fc18024cae03148c6ec4f38c85babe
2014-01-11 12:30:00 -08:00
Asumu Takikawa
ef0bf27e82 Fix broken TR test
Sorry, forgot to merge this into commit
892887b before pushing the last set of changes.

original commit: 4b248de215310ca96dacd7b52f8389989638e917
2014-01-07 14:33:49 -05:00
Asumu Takikawa
a93c922261 Add documentation for struct-type types
original commit: b7974ec3c25cfcbab60a0de6be31ea5a3c811612
2014-01-07 13:53:16 -05:00
Asumu Takikawa
55d25d738e Add tests for struct-type types
original commit: 892887ba71bd0bba1ea8a65195ffc4497afd2a3d
2014-01-07 13:53:16 -05:00
Asumu Takikawa
9f247a39ca Improve base types for struct-type operations
original commit: 2bfa5ea4ea476f6ee65d6e3ff5321a327a5a6ba8
2014-01-07 13:53:16 -05:00
Asumu Takikawa
c8301ad185 Refine handling of types for struct-types
- Added a top type for struct-types
  - Print struct-type types consistently
  - Add support for parsing struct-types
  - Allow polymorphism within a Struct-Type

original commit: ae80c216c3438c7bb208788ab99ed890263a80e5
2014-01-07 13:39:39 -05:00
Asumu Takikawa
4596f5c455 Add types for syntax/stx as typed/syntax/stx
original commit: 878b67a4a6a177ac609fad8e7732b636dc02d5fd
2014-01-07 13:37:46 -05:00
Asumu Takikawa
a59ae821df Add a #lang for additional base type environments
These are for base type environments that get required
rather than loaded with #lang typed/racket.

original commit: 91a1ff262bc42cb3ca5ccfbcdc85c7a592a54bc7
2014-01-07 13:37:46 -05:00
Asumu Takikawa
f120a5c1fb Convert check-below.rkt error msgs to new format
original commit: 6e36795523a356a21375c340e5b683db23e1ae71
2014-01-07 12:06:09 -05:00
Asumu Takikawa
6529989f1b Add TR helpers for new Racket error notation
original commit: 0488ce9e0bc9c59bfb165bb8bdbe6132447db627
2014-01-07 12:06:09 -05:00
Eric Dobson
60051104ea Make parse type and type annotation tests run at the right phase.
original commit: c97ce693f3fd176a0c53cadb116e5a22801dcc6c
2014-01-06 08:47:04 -08:00
Eric Dobson
fc4e260d51 Make expanded syntax visible in test failures to aid debugging.
original commit: 4518ad855f4d8908fff6d65b8e7fbf5d84eed0d0
2014-01-06 08:47:04 -08:00
Eric Dobson
306a8b4e7b Make test files have mains that run the test case defined in them.
original commit: 6bf7c4efd4c513c8143806f9f578ce1ba44010cd
2014-01-06 08:47:04 -08:00
Eric Dobson
7eb3ef16ef Making test suite files all meet a standard interface.
All test suite files now export one identifier with the name 'tests'.
This allows for them to be treated the same across the test
infrastructure.

original commit: 14c340a77bc3d35dc3edc489b0ff01719bcf31e7
2014-01-06 08:47:03 -08:00
Eric Dobson
1ddfb446c2 Make special env typecheck tests not run the code at module initialization.
original commit: 4e42a328e30ac34fb99654099335c7c8878ab05d
2014-01-06 08:47:03 -08:00
Eric Dobson
2aa14bc37f Make typechecking do the standard inits.
original commit: 3aa5c18d1197ec8e03923548f24eff55f0a58df0
2014-01-06 08:47:03 -08:00
Eric Dobson
09d380fdbf Remove unecessary lambda wrapper around test suites.
original commit: df892c9439b9dc367d6793aabde97c50dd24a92b
2014-01-06 08:47:03 -08:00
Eric Dobson
c15c31d8bf Removal of define-go.
original commit: 2b44814e95acaf600d3ebe66f44ea381642207de
2014-01-06 08:47:02 -08:00
Eric Dobson
2dad54d7ca Small style changes and removal of dead code.
Also adds a test to contract tests.

original commit: 20821f9ae8fcf8c849bcfb764d210eb8e392f131
2014-01-06 08:46:32 -08:00
Eric Dobson
cc6ff2d0b7 Clean up infer-tests.
original commit: b98eb0bc78fd596da509d7b02e88f4c303578c50
2014-01-06 08:42:59 -08:00
Eric Dobson
27f4a90c21 Add new functions to evaluator.
original commit: 7da97dca3cc8f7d7736199ad523787f23de026bd
2014-01-06 08:42:59 -08:00
Eric Dobson
8c1ad3550e Make evaluator a separate file.
original commit: 97dba9b99a1dae3ac05fec94f99ffdf507cff152
2014-01-06 08:42:59 -08:00
Asumu Takikawa
a6f6a5cf43 Document alternative type annotation form
original commit: 79ffd87a67f056b00f2531f0efa5e4ea1e7fa224
2014-01-04 17:30:48 -05:00
Eric Dobson
0e0a8f80d3 Add tc-toplevel/full and tc-module/full and use them.
original commit: feeb6c9163761f370b35b4c9fde033d6ab9efe07
2014-01-03 20:48:46 -08:00
Eric Dobson
0175943443 Replace init argument with direct calls to do-standard-inits.
original commit: a9e8324a388e9cb3835965614fb403d91b4f679a
2014-01-03 20:46:50 -08:00
Eric Dobson
cbce6e45b9 Split out do-standard-inits.
original commit: eeacfc57ffa59d48e538831fffe3f3184a27fc19
2014-01-03 20:42:20 -08:00
Eric Dobson
c8c5c12ae2 Make tc-setup just take a function instead of 3 identifiers.
original commit: f6ef86d7db520b5ebcfea694c135e525164d37e6
2014-01-03 20:42:15 -08:00
Matthew Flatt
b5755371fd copy drdr:random command props to test configs
original commit: 48a85125dae2db557443daaa7893f84abbd15f93
2014-01-01 08:21:31 -07:00
Matthew Flatt
d4c1468be4 copy responsible info to "info.rkt" files
It seems more ideal that `pkg-authors` would be specific enough
responsibility, but our existing allocations of responsibility are
more fine-grained, and we keep them for now.

original commit: 19f8f30f63ece380105f69796c046c7a00aa4f97
2014-01-01 07:27:15 -07:00
Matthew Flatt
3261fd7a59 sync test configuration for non-".rkt" files
original commit: 43d3479786c37152172b2a62432f37f8a20f664e
2013-12-30 12:15:18 -07:00
Matthew Flatt
40b69a9a80 move "props" test configs to test submodules or "info.rkt" files
The "props" file still has

 * ".rkt" `drdr:timeout` entries, needed until DrDr uses submodules and
   "info.rkt" files; although timeout information has been put in
   submodules for `raco test`, DrDr uses `raco test` in a way that does not
   enable timeouts, so that DrDr can implement timeouts itself (and record
   when a test times out)

 * ".rkt" `drdr:random #t` entries; not sure what to do with these, yet

 * ".rkt" `responsible` entries; not sure what to do with these, yet

 * ".rktl" `drdr:command-line #f` entries, needed until all ".rktl" files
   are disabled in DrDr

The following files were previously disabled for DrDr testing, but were
intentionally left as enabled with these changes:

pkgs/racket-pkgs/racket-test/tests/pkg/shelly.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/util.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/info.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/basic-index.rkt
pkgs/racket-pkgs/racket-test/tests/racket/link.rkt
pkgs/racket-pkgs/racket-test/tests/racket/embed-in-c.rkt
pkgs/racket-pkgs/racket-doc/ffi/examples/use-c-printf.rkt
pkgs/racket-pkgs/racket-doc/ffi/examples/c-printf.rkt
pkgs/parser-tools-pkgs/parser-tools-lib/parser-tools/private-lex/error-tests.rkt
pkgs/mysterx/mysterx.rkt
pkgs/mysterx/main.rkt
pkgs/games/gobblet/test-model.rkt
pkgs/games/gobblet/test-explore.rkt
pkgs/games/gobblet/robot.rkt
pkgs/games/gobblet/check.rkt
pkgs/db-pkgs/db-lib/db/private/odbc/main.rkt
pkgs/db-pkgs/db-lib/db/private/odbc/ffi.rkt
pkgs/db-pkgs/db-lib/db/private/odbc/dbsystem.rkt
pkgs/db-pkgs/db-lib/db/private/odbc/connection.rkt
pkgs/distributed-places-pkgs/distributed-places-lib/racket/place/distributed/examples/hello-world.rkt
pkgs/redex-pkgs/redex-lib/redex/private/compiler/match.rkt
pkgs/redex-pkgs/redex-lib/redex/private/compiler/match.rkt
pkgs/htdp-pkgs/htdp-test/2htdp/utest/balls.rkt
pkgs/gui-pkgs/gui-test/framework/tests/test-suite-utils.rkt
pkgs/games/paint-by-numbers/raw-problems/size-calculation.rkt
pkgs/db-pkgs/db-lib/db/odbc.rkt
pkgs/compatibility-pkgs/compatibility-lib/mzlib/traceld.rkt
pkgs/cext-lib/dynext/private/stdio.rkt
pkgs/db-pkgs/db-lib/db/odbc.rkt
racket/collects/ffi/unsafe/objc.rkt
racket/collects/ffi/objc.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/tests-db.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/test-docs.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/test-catalogs-api.rkt
pkgs/gui-pkg-manager-pkgs/gui-pkg-manager-lib/pkg/gui/main.rkt
pkgs/redex-pkgs/redex-lib/redex/private/compiler/redextomatrix.rkt
pkgs/typed-racket-pkgs/typed-racket-lib/typed-racket/base-env/base-special-env.rkt
pkgs/planet-pkgs/planet-test/tests/planet/version.rkt
pkgs/planet-pkgs/planet-test/tests/planet/test-docs-complete.rkt
pkgs/planet-pkgs/planet-test/tests/planet/lang.rkt
pkgs/planet-pkgs/planet-test/tests/planet/docs-build.rkt
pkgs/drracket-pkgs/drracket-test/tests/drracket/follow-log.rkt
pkgs/drracket-pkgs/drracket/drracket/private/dock-icon.rkt
pkgs/drracket-pkgs/drracket-test/tests/drracket/tool-lib-and-sig.rkt

original commit: e226ad66c5fb6095d5702e5c47f5c7cf73e914f5
2013-12-30 12:15:18 -07:00
Asumu Takikawa
80d4bc4833 Test the error message instead of a predicate
This test was broken prior to commit 370c4bd but
didn't fail because the test harness didn't test for
the right error.

original commit: 401c4dd0a662da7bf3dfe211946f9ab12f8a8346
2013-12-18 19:25:17 -05:00
Robby Findler
20cd880755 fix any-wrap/c for promises
original commit: 370c4bdce240da5fa5513ae575335d5c548f58cc
2013-12-18 12:58:56 -06:00
Asumu Takikawa
b8f328cdbf Refactor tc-utils
Use an explicit `provide` list and delete unused functions.

original commit: f4d5b00ea582462a5f545b52056ef8227feca679
2013-12-17 14:40:24 -05:00