Alexis King
400485a738
Add rackunit shortcut test declarations, fixes PR 14917
...
Closes #23 .
2015-02-09 17:33:59 -05:00
Alexis King
ece97e5e5c
Add typed/srfi/19 to typed-racket-more
...
Closes #22 .
2015-02-09 17:33:14 -05:00
Sam Tobin-Hochstadt
13614ae5c2
Always use rename-out
in generated provide
s.
...
Since rename-transformers can generate free-id=? names, we could
end up providing two things with the same name.
Fixes PR 14972.
2015-02-09 16:40:39 -05:00
Sam Tobin-Hochstadt
bafc7d93e7
Raise proper errors when there are too many contract constraints.
...
Fixes PR 14890.
This could potentially be relaxed if needed, but this addresses
the immediate issue.
2015-02-09 16:37:32 -05:00
Sam Tobin-Hochstadt
ae0717d970
Move generated contracted provides to a submodule.
...
This allows the main TR module not to explicitly
depend on the contract library. Each exported name
can be redirected to either the original name (for a
typed client) or to another macro (for an untyped
client) which expands to a `local-require` for the
relevant submodule (named `#%contract-defs`).
Thanks to Matthew for the initial idea and an
implementation in plai-typed that this is based on.
2015-02-08 20:37:04 -05:00
Asumu Takikawa
6c09d52b2e
Generalize method handling in TR
...
Previously, TR only recognized a subset of the syntax that
the class macro accepts for method definitions (and errored
unhelpfully on other cases). Though that subset was sufficient
for most methods, macros will sometimes produce unusual forms.
2015-02-08 18:29:37 -05:00
Vincent St-Amour
787df49140
Make type of division more lenient.
...
Thanks to John Clements for the report.
2015-02-04 14:06:54 -05:00
Asumu Takikawa
8ebbd3dfee
GUI type fixes
...
Due to either typos in documentation, adjustment to make
contract generation easier, or where a more precise type than
documented is needed for real uses.
2015-02-03 16:59:46 -05:00
Asumu Takikawa
8402ee1635
Add FSemaphores to Typed Racket
2015-02-02 11:23:09 -05:00
Asumu Takikawa
e85cc55f6f
Add types for call-with-semaphore
2015-02-02 02:54:01 -05:00
Asumu Takikawa
42d841ce11
Add some missing methods in GUI types
2015-02-02 01:37:37 -05:00
Alexis King
032a11fdae
Add support for use-dir? param of in-directory
...
Closes #21 .
2015-01-31 09:34:01 -05:00
Alexis King
7122d93de8
Make Path a subtype of Module-Path
...
Closes #20 .
2015-01-31 09:33:50 -05:00
Alexis King
8c471bb2a3
Add tests for directory-list #:build? argument
...
Closes #18 .
2015-01-29 09:55:17 -05:00
Alexis King
9bad7f0128
Improve the type for directory-list
2015-01-29 09:55:06 -05:00
Asumu Takikawa
1cbdad12f6
Remove uses of srfi/1 in Typed Racket
2015-01-28 13:31:56 -05:00
Vincent St-Amour
ef35d21a31
Refine type of current-inexact-milliseconds.
...
Thanks to Alex Knauth for the report.
2015-01-27 20:30:28 -05:00
Alex Knauth
d93b387150
more useful types for hasheqv and hasheq too
...
Closes #16 .
2015-01-24 12:37:12 -05:00
Alex Knauth
19455584ab
more useful type for hash
...
still only up to 8 arguments
2015-01-24 12:36:16 -05:00
Asumu Takikawa
066e4356b4
Support type alias definitions in class bodies
2015-01-22 14:22:11 -05:00
Asumu Takikawa
a45fd96224
Remove unneeded unit imports in check-class-unit
2015-01-21 16:19:20 -05:00
Asumu Takikawa
5c090ba686
Fix new error messages for class/object types
...
Closes PR 14942
2015-01-21 13:55:19 -05:00
Asumu Takikawa
8e63b14f4c
Fix contract for contracted TR tests
2015-01-21 13:55:11 -05:00
Asumu Takikawa
4ab7ba2578
Improve check-below errors for classes/objects
...
Also fix a type-checker bug that the tests for the
error messages uncovered.
2015-01-20 19:58:25 -05:00
Asumu Takikawa
b9aca78cf0
Update compile-omit-paths for TR tests
2015-01-20 14:23:38 -05:00
Asumu Takikawa
0b8c29b98e
Fix TR's async-channel-contract test
2015-01-20 14:23:38 -05:00
Asumu Takikawa
e1ad989d18
Move GUI tests to a separate folder
...
These don't work as ordinary integration tests because
racket/gui/base cannot be instantiated multiple times.
The test driver will be modified later to run these
differently to avoid multiple instantiation.
2015-01-20 10:47:53 -05:00
Asumu Takikawa
8bc58ba94c
Don't show GUI frame for Esquire test
2015-01-20 10:47:53 -05:00
Alexis King
b9e600dc1a
Add contract generation support for Async-Channelof
2015-01-19 21:11:09 -05:00
Asumu Takikawa
455bc7664b
Fix type dictionary entries for overriden methods
...
Add typed Racket Esquire as a test case
2015-01-19 16:12:31 -05:00
Asumu Takikawa
874f426e9c
Remove unnecessary requires in extra-env-lang.
...
Avoids phase 0 dependencies on TR internals.
2015-01-19 13:41:29 -05:00
Sam Tobin-Hochstadt
5ba9633e78
Improve hash-table overlap.
...
Thanks to Alex Knauth for the code and Jordan Johnson for the test case.
2015-01-19 09:48:50 -05:00
Sam Tobin-Hochstadt
579d78aa88
Add discussion of define-predicate
to contract caveats.
2015-01-18 15:14:26 -05:00
Asumu Takikawa
769cd04b37
Add cond-contract requires to fix contracted tests
2015-01-18 14:20:50 -05:00
David Van Horn
88afb40f60
Parens
2015-01-17 12:54:31 -05:00
Andrew Kent
7633d6d1b8
let/ec swapped out in update
2015-01-17 14:20:30 +05:30
Sam Tobin-Hochstadt
9a39c3e793
Add for/set
and for*/set
to Typed Racket.
2015-01-16 09:43:37 -05:00
Andrew Kent
e7d61bd982
fixed struct field updates
2015-01-14 15:32:34 +05:30
Asumu Takikawa
e922807837
Fix contract for tc/send
2015-01-14 00:23:28 -05:00
Asumu Takikawa
2c0d4b8aec
Undo local-require
change from 7afeada73d
...
Recent changes to contract generation have made this
`local-require` unnecessary. Using `require` is preferable
since `local-require` can interact poorly with submodules.
2015-01-14 00:23:27 -05:00
Andrew Kent
8c5c032520
Merge pull request #10 from andmkent/master
...
path-type now allows normal internal errors
2015-01-14 06:09:25 +05:30
Sam Tobin-Hochstadt
beedaf322f
Add missing dependency.
2015-01-13 10:15:08 -05:00
Asumu Takikawa
4f05adcd19
Fix type for make-brush
...
Related to PR 14899
2015-01-12 18:36:35 -05:00
Asumu Takikawa
ded837ce10
Fix tc/send to accept keyword argument methods
...
Closes PR 14910
2015-01-12 18:36:35 -05:00
Alexis King
ec946a8ba8
Note code adapted from rackunit and improve type declarations
2015-01-12 17:14:08 -05:00
Alexis King
f9b886f83b
Add support for the rackunit/gui test runner
2015-01-12 17:14:08 -05:00
Alexis King
40a952da0c
Add typed/rackunit/docs-complete for check-docs function
2015-01-12 17:14:08 -05:00
Alexis King
26ba7a50af
Add support for test-suite functionality
2015-01-12 17:14:08 -05:00
Alexis King
5d2a0392dd
Reimplement the test-case macro to typecheck properly
2015-01-12 17:14:08 -05:00
Andrew Kent
fd4f05e64b
path-type sep file
2015-01-10 15:11:10 -05:00