Commit Graph

4240 Commits

Author SHA1 Message Date
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
Asumu Takikawa
a0009b5e5d Fix base env types that are too conservative
These accessors and removers required the target value
to have the same type variable as the collection, but
that's more conservative and less useful than Any.

original commit: 098f398a14b816fda66477ed516464c9c15961bb
2013-12-17 01:33:47 -05:00
Eric Dobson
4ebfe5617f Add a bunch of tests for contract creation error messages.
Also minor fixes to said error messages.

original commit: 7060bdd0f858ccd7b85e7b9899ff6b55c5a29b29
2013-12-16 21:04:36 -08:00
Vincent St-Amour
d265a21b16 Update Typed Racket history.
Please merge to 6.0.

original commit: ac480e7535570cc42f7f7f94818f5a05cda11056
2013-12-16 17:05:39 -05:00
Vincent St-Amour
b3988ebab9 Remove dependencies of typed-racket-more.
original commit: 46260a6e8527bc7a18e9d4d72ab2140f89e9ed00
2013-12-16 17:04:16 -05:00
Vincent St-Amour
a0274e90cc Remove dependency on scheme-lib.
original commit: e0caf456dd3bdeb983482ddcfd8418bbc7bb0d90
2013-12-16 17:04:16 -05:00
Vincent St-Amour
2b87778cc9 Remove some SRFI dependencies.
original commit: 2195bdd15aa771c5bc2388ac3eca99256619993d
2013-12-16 17:04:16 -05:00
Vincent St-Amour
670bde6aad Split legacy Typed Racket languages into their own module.
original commit: 9a67230ae0eb04f5e6667dd5e05a64e9e5789edd
2013-12-16 17:04:15 -05:00
Eric Dobson
b24a9cac44 Add test to track tr memory usage.
original commit: edb04b8bfeefcdcfe57fe24ed2cc03799e8eb77d
2013-12-16 09:42:27 -08:00
Eric Dobson
ef52853ea7 Fix broken TR code.
original commit: ef6af9c47cbe8515bc6a0d2b19133b7936096e29
2013-12-15 17:00:53 -08:00