Jay McCarthy
78151e073b
Fixing the handling of request bodies on non-POST methods
2011-09-13 08:57:58 -06:00
Matthew Flatt
b7bef3b3aa
add syntax-transforming-module-expression?',
variable-reference->module-base-phase'
2011-09-12 17:08:50 -06:00
Matthew Flatt
c352ef8fce
allow different phases for `free-identifier=?' arguments
2011-09-12 17:08:50 -06:00
Sam Tobin-Hochstadt
d0bf047121
Add test of behavior like the "module" language in DrRacket.
2011-09-12 12:14:50 -04:00
Robby Findler
cd1c96d596
adjust check syntax to work with the new begin-for-syntax
2011-09-10 22:10:59 -05:00
Robby Findler
e947df4359
finally fixed up the syncheck tests so they run under windows
2011-09-10 22:10:51 -05:00
Stephen Chang
3a44c34b39
Merge branch 'master' of pltgit:plt
2011-09-09 02:30:24 -04:00
Stephen Chang
65dbdafa92
add strictness tests for lazy
2011-09-09 02:30:06 -04:00
Matthew Flatt
d3c56c9f13
generalized `begin-for-syntax'
2011-09-08 14:06:00 -06:00
Sam Tobin-Hochstadt
cd073ad549
Switch to racket/base to fix bizarre bug.
2011-09-07 16:08:00 -04:00
Eric Dobson
c62f09ac5b
Fixed subtyping for StructTop. Closes PR11099.
2011-09-07 09:17:04 -04:00
Eric Dobson
32becc2e0a
Change overlap for structs in TR. Closes PR11390.
2011-09-07 09:17:04 -04:00
Eric Dobson
53ce20d3f9
Resolve names in overlap in TR. Closes PR11392.
2011-09-07 09:17:03 -04:00
Jon Rafkind
6b2c251b24
[honu] remove old test file
2011-09-06 17:33:13 -06:00
Jay McCarthy
e9a9d79490
Better solution to pr12145
2011-09-06 15:42:12 -06:00
Ryan Culpepper
69a56ef683
db: clean up test suite, (test conditional) => (conditional test), timing
2011-09-06 12:41:03 -06:00
Kevin Tew
f44337e28e
Change stderr output to logging, to please drdr
2011-09-06 11:13:13 -06:00
Jay McCarthy
b2570bee3c
Fixing allowance of multiple headers
2011-09-06 10:06:23 -06:00
Robby Findler
c30122d1fc
more adjustments to try to get the drracket test suites running in drdr
2011-09-05 20:19:17 -05:00
Robby Findler
09e65716d5
add missing require
2011-09-05 20:19:15 -05:00
Matthew Flatt
6d944453a7
make memory accounting and places work together
...
The `current-memory-use' function's result now includes the memory
use of places created from the calling place, and custodian memory
limits apply to memory use by places (owned by the custodian).
This change is relevant to PR 12004 in that DrRacket will no longer
crash on the example if a memory limit is in effect, but plain
Racket starts with no such limit and will exhaust all memory.
2011-09-05 13:24:22 -06:00
Robby Findler
cda12b39ed
more adjustment of the drracket test suites to avoid using os-given focus information
...
also increase the timeout of the io.rkt test
2011-09-05 14:13:49 -05:00
Eli Barzilay
9c77ea7155
Actually run the strictness-tests.
2011-09-05 13:58:33 -04:00
Robby Findler
a67f509f90
add frame:focus-table-mixin & related things to be able to make drracket
...
test suites that don't depend on the OS giving any focus messages
2011-09-05 08:30:49 -05:00
Matthew Flatt
ee6104b4fc
fix `subprocess-status' when places are enabled
...
Closes PR 12158
2011-09-04 15:55:26 -06:00
Sam Tobin-Hochstadt
c0b4743b40
Tests for all Typed Racket languages, and add missing ones.
2011-09-04 12:58:13 -04:00
Eli Barzilay
6ebf3ab32d
Revert "Abolish "typed-scheme"."
...
This reverts commit 49a89da818
.
(Will be redone later today.)
2011-09-04 10:27:58 -04:00
Eli Barzilay
49a89da818
Abolish "typed-scheme".
2011-09-04 08:46:03 -04:00
Sam Tobin-Hochstadt
d2e1cc02dc
Move typed-scheme to typed-racket collection.
...
Compatibilty typed-scheme collection left.
2011-09-03 20:49:39 -04:00
Sam Tobin-Hochstadt
4c9c02905d
Add tests for non-linearity in `match-let'.
2011-09-03 18:13:34 -04:00
Matthew Flatt
a53f51d92d
fix HtDP local' to work better with macros that expand to
begin'
...
In particular, the forms within `begin' need to be partially
expanded before checking whether they're allowed.
2011-09-03 15:15:24 -06:00
Matthew Flatt
20a1440dcf
fix build-struct-generation' to work with
racket/base'
...
and also still works with `mzscheme'
2011-09-03 07:49:22 -06:00
Kevin Tew
dbcf70db30
Fix check for interactively defined module paths.
2011-09-01 15:17:22 -06:00
Kevin Tew
81f9bf4e1d
Fix dup errors, bignum deserialization, and port names across place channels
...
Fix bignum deserialization
Error reporting for failed dups during place channel communications
communicate socket port names across place channels
2011-09-01 12:02:21 -06:00
Kevin Tew
261f002ce2
Error messages for using places with symbol module paths
2011-09-01 12:02:20 -06:00
James Ian Johnson
3f23a67d57
Fixed the duplicate identifier bug in match-define-values and changed identifiers to conform to naming conventions.
2011-08-31 22:27:02 -04:00
James Ian Johnson
dc61372f3c
Implemented Sam's suggested changes for new forms, and added a new match/values form.
2011-08-31 21:45:21 -04:00
Sam Tobin-Hochstadt
36219c4b93
Use reference implementation for srfi/11.
...
Closes PR 12147.
2011-08-31 12:38:38 -04:00
Ryan Culpepper
19b1ff101c
db: fixed kill-safe-connection, improved tests
2011-08-31 05:40:24 -06:00
Ryan Culpepper
96663d4fa4
db: added #:use-place arg for ffi-based connections
...
SQLite and ODBC connections can use places to avoid blocking all
Racket threads.
2011-08-31 05:40:24 -06:00
Jon Rafkind
5f0a221a03
[honu] allow already parsed expression to pass through
2011-08-30 21:11:11 -06:00
Jon Rafkind
5dab69cf4b
[honu] new macro test
2011-08-30 17:19:17 -06:00
Kevin Tew
4d8833eab2
abandon unused scheme_socket_to_ports during place copy
2011-08-30 16:21:32 -06:00
Vincent St-Amour
0510bb0949
Have drdr run the missed opts tests.
2011-08-30 17:00:25 -04:00
Ryan Culpepper
b706fc1ebc
db: cleaned up testing script, run sqlite tests by default
2011-08-30 12:04:25 -06:00
Ryan Culpepper
397702808a
db: fixed virtual-statement
...
Eliminated interface test (shallow) in favor of method test
(correct, recursive). Also made vstmts work with virtual-connections.
2011-08-30 12:04:24 -06:00
Ryan Culpepper
1c6817426e
db: added group-rows, #:group arg to query-rows
2011-08-30 12:04:24 -06:00
Sam Tobin-Hochstadt
534d89b983
Fix type of `make-temporary-file'.
2011-08-30 11:33:40 -04:00
Sam Tobin-Hochstadt
3e1eb67336
Make environments much lazier about computing types; remove useless requires.
...
Allow duplicate type annotations when they are the same type.
2011-08-30 11:33:40 -04:00
Jay McCarthy
2dc0098d86
Changing test phase
2011-08-30 08:52:54 -06:00
Robby Findler
61aaf584c5
adjust the threading protocol for compilings files to be kill safe
2011-08-30 07:59:33 -05:00
Stephen Chang
8d962c0b4f
add strictness tests for Lazy Racket
2011-08-30 02:31:05 -04:00
Eli Barzilay
0f84202f78
This test can fail when running with the CGC.
2011-08-29 23:36:08 -04:00
Eli Barzilay
4ae7e05632
Finally there should be no temp file leftovers now.
2011-08-29 22:12:25 -04:00
Robby Findler
d4f4f754f1
make make-temporary-file use the source location for its template argument
...
(This involves making make-temporary-file be a macro instead of a procedure.)
2011-08-29 19:36:33 -05:00
Eli Barzilay
f3f3af124f
Removed SrPersist.
...
Blessed-by: Ryan
2011-08-29 16:55:42 -04:00
Eli Barzilay
1b05a2968c
Quick fix
...
(Didn't realize that tool names are relative to the info file.)
2011-08-29 16:48:15 -04:00
Eli Barzilay
e788903d0e
Remove a bunch of no-longer-needed `compile-omit-paths', and move the
...
few ones into the subcollections.
2011-08-29 16:33:12 -04:00
Eli Barzilay
d8029e4fca
Organize the errortrace tests.
2011-08-29 16:33:12 -04:00
Matthew Flatt
b02e37b0b9
restore module cache
...
The module cache was added in 97ce26b1
(April 16, 2011),
but it was accidentally disabled in e9721058
(May 5, 2011).
This time, I figured out a way to test whether the cache is
working (other than to benchmark examples, which is how I
discovered that it wasn't working).
2011-08-28 18:15:44 -06:00
Matthew Flatt
4f83f7f279
allow phase 1+ references to not-yet-defined bindings
...
For example,
(define-for-syntax (f x) (g x))
(define-for-syntax (g y) y)
is now allowed. The unbound-variable check for phase 1
and up is delayed until after the module body is partially expanded.
2011-08-28 10:27:31 -06:00
Ryan Culpepper
92e2d1eb6e
db: split off db/util/datetime module
2011-08-27 16:31:22 -06:00
Ryan Culpepper
a91e6f6452
db: "recordset" -> "rows-result", "rows"
2011-08-27 16:31:22 -06:00
Robby Findler
0f534be12c
oops
2011-08-27 17:25:52 -05:00
Robby Findler
7c640c5c5d
add a test case for starting up drracket when there is no writing to the filesystem allowed
2011-08-27 17:25:15 -05:00
Robby Findler
72e5e1248f
make all of the planet tests run sequentially (as they manipulate global
...
planet state that causes them to fail when run in parallel)
2011-08-27 16:41:33 -05:00
Robby Findler
25eb851217
Revert "add more debuggin info to the thread-safe-resolver.rkt planet test to try to debug it on drdr"
...
I think I know why this test is failing now; no need for this info anymore
This reverts commit e88c8dbaa0
.
2011-08-27 16:41:31 -05:00
Carl Eastlund
871ea6dc76
Added tests for sequence/c with multiple-valued sequences.
2011-08-27 12:57:26 -04:00
Robby Findler
e88c8dbaa0
add more debuggin info to the thread-safe-resolver.rkt planet test to try to debug it on drdr
2011-08-27 07:54:12 -05:00
Sam Tobin-Hochstadt
c7ac40f33b
Repair test for boolean generalization.
2011-08-26 14:08:40 -04:00
Matthew Flatt
71b500b49f
speed up mult/unmult in `{get,set}-argb-pixels'
...
Also add test cases to check consistency of the results.
2011-08-26 09:13:28 -06:00
Eli Barzilay
2ef9f5ae0e
Fix a bug in resolve-module-path' to do an
expand-user-path', which
...
`file' specs do too (in `require' etc).
2011-08-26 10:13:27 -04:00
Eli Barzilay
6e50ecad99
Add $1',
$2', ..., `$5' as last-value references.
2011-08-26 09:42:56 -04:00
Eli Barzilay
15211fbb42
Fix weak box tests for optional `weak-box-value' argument; add one for the new functionality.
2011-08-26 09:20:26 -04:00
Eli Barzilay
cda4479d1e
Hold the saved values weakly.
2011-08-26 09:10:46 -04:00
Matthew Flatt
290fe066b6
add optional argument to weak-box-value' and
ephemeron-value'
2011-08-26 06:24:34 -06:00
Matthew Flatt
b0245395b7
add a test for undo-clickback repair
2011-08-26 06:07:57 -06:00
Sam Tobin-Hochstadt
ba09e906d8
Generalize #t and #f to `Boolean'.
2011-08-26 08:05:44 -04:00
Eli Barzilay
6203f53ef6
Syntax-based implementation for saved values, finally working.
2011-08-26 05:26:46 -04:00
Eli Barzilay
1db5ad97f8
Fix another bunch of "language" typos.
2011-08-26 05:26:46 -04:00
Sam Tobin-Hochstadt
7dd209f905
Initial support for standard optional arguments.
2011-08-25 19:00:49 -04:00
Ryan Culpepper
50f0a32f9e
added db library
2011-08-25 12:56:42 -06:00
Matthew Flatt
ce7c0d62c3
if only a Unix root is shared, don't make a path relative
2011-08-24 20:08:20 -06:00
Kevin Tew
5a30aa89eb
Allow TCP sockets and file ports to be communicated across places
2011-08-24 14:33:54 -06:00
Sam Tobin-Hochstadt
a7cf16d486
Propagate expected function types propertly in case-lambda.
...
Closes PR 10139.
2011-08-24 15:29:10 -04:00
Kevin Tew
8782f4c445
send ffi pointers across places
2011-08-23 13:33:06 -06:00
Eli Barzilay
2bc2050c08
Fix when showing the description of a module.
...
Set `current-load-relative-directory' to the path of the module file so
paths that it resolves in the description (in `describe-modeul') are not
bogus.
2011-08-22 07:49:49 -04:00
Matthew Flatt
bdadc453e0
fix `compile-collection-zos'
2011-08-21 11:43:59 -06:00
Matthew Flatt
a587f047d6
test fixes for Windows
2011-08-20 11:08:12 -06:00
Matthew Flatt
345b06838d
FFI: add C arrays and unions
2011-08-20 10:24:32 -06:00
Jon Rafkind
242337286d
[honu] move test to the tests collection
2011-08-19 17:13:22 -06:00
Matthew Flatt
11f5c84493
fix make-lock-file-name'; add
path-element?'
2011-08-19 15:46:44 -06:00
Matthew Flatt
32da8e2b1f
fix same-scaled test
2011-08-19 13:15:36 -06:00
Matthew Flatt
349c54f3c0
fix optimizer test
2011-08-19 12:51:49 -06:00
Jay McCarthy
3cd6be5931
I believe this fixes PR12117. The teaching languages rely on syntax/struct. (I have run the teaching language tests, but do not other uses of syntax/struct.) It appears that syntax/struct has been incorrectly creating this information for some time. The problem is that it would end the static info with a #f if the selectors or setters were omitted, but reading the documentation implies that there should be a final #f in either case. I've therefore changed the boolean to an or over the flags
2011-08-19 11:30:42 -06:00
Matthew Flatt
d185c2a0df
fix optimizer bug
...
Also fix missing copy-propagation opportunity
2011-08-19 07:35:39 -06:00
Matthew Flatt
8eefaba187
fix `regexp-match' performance for short matches on long strings
...
More specifically, for a string of length N and a match that
only looks at the first M characters, the complexity of
`regexp-match' is now O(M) instead of O(N). This allows
`regexp-split' to be O(N) for a string instead of O(N^2).
Also, fixed a bug in non-greedy matching that could affect
both long strings and input ports.
2011-08-18 09:26:09 -06:00
Matthew Flatt
09b4a55d87
Revert "Fix a scribble test for plural "Examples""
...
The test was correct, and e4729afdbf
fixes the bug.
This reverts commit 4eaab11d14
.
2011-08-17 20:43:12 -06:00
Sam Tobin-Hochstadt
bdcc63b229
Handle apply for functions with no rest arguments.
2011-08-17 18:19:47 -04:00
Vincent St-Amour
cfec4280d3
Fix DrRacket test.
2011-08-17 17:34:55 -04:00
Vincent St-Amour
c8a930550e
Fix DrRacket tests.
2011-08-17 12:12:54 -04:00
Sam Tobin-Hochstadt
5979a42448
Use a temporary directory to eliminate DrDr races in running benchmarks.
2011-08-17 11:24:53 -04:00
Eli Barzilay
4eaab11d14
Fix a scribble test for plural "Examples"
2011-08-17 10:00:55 -04:00
Matthew Flatt
dfd58a2cdd
adjust sandbox to give S-expression input "original" status
2011-08-17 06:22:27 -06:00
Robby Findler
a221e4bba2
move some helper files into the private/ directory for drracket tests
2011-08-17 06:19:23 -05:00
Robby Findler
9495145ea5
add more info to try to debug planet failure
2011-08-17 06:04:07 -05:00
Stephen Chang
af3e0cea01
updated Lazy Racket to use racket/base
...
updated Lazy Racket to use racket/base instead of mzscheme
2011-08-17 01:48:58 -04:00
Robby Findler
cc4de51fb0
- make the planet module resolver thread safe
...
- fixed planet to actually use the uninstalled (.plt file) cache
- linkage code was completely broken, so it now stubbed out (see the file to
resurrect it)
- other minor cleanups
2011-08-16 15:30:55 -05:00
Sam Tobin-Hochstadt
4c56a94eb1
DrDr repairs.
2011-08-16 08:14:39 -04:00
Sam Tobin-Hochstadt
c54fc6d6d7
Refactor unit tests to handle tests that need base-special-env separately.
2011-08-15 21:39:31 -04:00
Casey Klein
72059c908b
Fixes check syntax bug
2011-08-15 17:50:11 -05:00
Vincent St-Amour
3b9fcdea92
Formatting.
2011-08-15 12:56:28 -04:00
Vincent St-Amour
8dba93646a
Remove redundant logging message.
2011-08-15 12:19:54 -04:00
Matthew Flatt
8989e810fb
fix over-eager bytecode transformation
2011-08-15 09:36:38 -06:00
Eli Barzilay
f297c98c1a
Heavily revise this test.
...
- Simplify code
- Remove bogus leftover (tests) in the end
- Resolve deadlock that resulted from using `tcp-abandon-port' in
`net/ftp'
- Actually there's no need for threads, probably because of small size
of data, so keep it.
- Use scribble syntax instead of here-strings, and move the text out of
the way.
2011-08-15 02:37:39 -04:00
Robby Findler
00d3f72f21
fix up a few bugs, improve the docs, and start a test suite for the
...
new check syntax direct-to-traversal api
2011-08-14 14:32:45 -05:00
Sam Tobin-Hochstadt
54c044c36a
Fix initial type environment for new-style keyword functions.
2011-08-14 13:40:42 -04:00
Sam Tobin-Hochstadt
2d094db270
Fix typechecking of `#%variable-reference'
2011-08-14 13:40:42 -04:00
Sam Tobin-Hochstadt
25084de5a7
Use regular define for `open-input-file' and friends.
2011-08-14 13:40:41 -04:00
Matthew Flatt
5be429dc99
fix procedure-name inference for keyword procedures
...
Closes PR 12111
2011-08-13 08:27:20 -06:00
Jon Rafkind
d374fab4ca
[honu] add some examples
2011-08-12 15:16:39 -06:00
Matthew Flatt
ce4286c722
fix bug in keyword-argument calls
...
Closes PR 12104
2011-08-12 07:24:39 -06:00
Matthew Flatt
1c04cf1b02
make `port-try-file-lock?' work for Solaris
...
Shared locking now allowed only on input port, and exclusive
locking is allowed only on output ports, which allows an implementation
via fcntl(...,F_SETLK,...).
2011-08-11 13:11:26 -06:00
Robby Findler
997813680d
change the #:get-lock-file argument of call-with-file-lock/timeout to #:lock-file
2011-08-11 09:29:31 -05:00
Robby Findler
71c6483f4f
trace the language-position require(s) specially
...
so as not to turn them red when there is no use
of something exported by them in the program
closes PR 12100
2011-08-10 19:12:04 -05:00
Vincent St-Amour
8bcb7f2636
More TR test failures more easily detectable.
2011-08-10 15:45:54 -04:00
Matthew Flatt
306e091f35
fix a `(with-handlers ([exn? ....]) ....)'
2011-08-09 16:33:18 -06:00
Matthew Flatt
2d06f4247f
keyword-function repairs
2011-08-09 16:33:17 -06:00
Matthew Flatt
f646511ca7
first small step toward cross-module optimization
...
Mainly propagates constantness for the benefit of keyword
applications, but also propagates simple constants
2011-08-09 16:33:17 -06:00
Matthew Flatt
5352d670c4
generalize #%variable-reference' and add
variable-reference-constant?'
...
Use the new functions to make the expansion of keyword applications
to known procedure work with mutation.
2011-08-09 16:33:17 -06:00
Jon Rafkind
4538335b1c
[honu] return a void expression if there is no current expression waiting to be processed
2011-08-09 16:25:27 -06:00
Jon Rafkind
3bcf99b8f6
[honu] parse brace-enclosed code as an expression
2011-08-09 11:57:52 -06:00
Jon Rafkind
8a352da71c
re-enable test
2011-08-09 11:57:51 -06:00
John Clements
afc01ca2d1
updated expected (cons 1 2) error message
2011-08-09 09:42:23 -04:00
Jay McCarthy
6da3ac36ec
Test is sensitive to contract messages
2011-08-09 06:42:09 -06:00
Robby Findler
40c68df514
fix the auto-square-bracket thing for with-syntax
...
closes PR 12096
2011-08-08 19:30:13 -05:00
Jay McCarthy
a4f70ae598
Fixing PR12085
2011-08-08 12:39:22 -06:00
Jon Rafkind
aac511dfb6
disabled the wrong test. this is the right one
2011-08-08 10:32:08 -06:00
Jon Rafkind
3e8ad26b1f
need a single expression so the test doesnt fail
2011-08-07 18:24:30 -06:00
Jon Rafkind
513d73068e
disable honu test for now
2011-08-07 17:51:29 -06:00
Robby Findler
1218cbfef6
improve send error message in the case that there is only one arg
...
closes PR 12091
2011-08-06 19:27:02 -05:00
Matthew Flatt
2d4e14dca8
fix a kill-safety problem in the module name resolver
2011-08-06 08:25:36 -06:00
Vincent St-Amour
b124d68f40
Improve error message for calls to 'sort' when inference fails.
2011-08-03 17:39:15 -04:00
Matthew Flatt
3b8d00029e
fix `namespace-attach-module{-declaration}' problem
...
Closes PR 12048
2011-08-02 17:06:12 -06:00
Robby Findler
b972a0940d
Added online expansion and compilation of files
...
being edited in DrRacket (via places)
Added an API to let tools have access to that
information (and compute more stuff)
Used that to make an online version of Check Syntax
which led to a separately callable Check Syntax API.
2011-08-02 16:28:16 -05:00
Robby Findler
33cf3a167b
add test case for PR 12084, clean up exception predicates in test suite a little
2011-08-02 16:28:13 -05:00
Eli Barzilay
68fce6d9db
Revert "Have DrDr keep ignoring the random seeds."
...
(Since DrDr never ignored that text.)
This reverts commit e972c0c392
.
2011-08-02 16:56:02 -04:00
Eli Barzilay
e52e7defae
Much improved `wrapped-output'.
2011-08-02 16:56:02 -04:00
Matthew Flatt
fba1777b8a
fix contract
2011-08-02 06:48:54 -06:00
Matthew Flatt
ec27cbfd90
fix problems related to futures and is-list flags on pairs
...
Although a future thread used an atomic compare-and-swap to
set "is a list" or "not a list" flag on pairs via the
JIT-implemented `list?', the hashing function in the runtime
thread did not; as a result, it might be possible to lose
a hash code due to cache inconsistency (although I'm not
sure it's actually possible, and I couldn't trigger a problem
with a test). Most of the changes are related to using
an atomic compare-and-swap when setting a hash code, as
well as clean-ups to related code. Processor-count tests
avoid using atomic compare-and-swap on uniprocessors, which
might not support the relevant machine instructions.
As significantly, the compare-and-swap operation for the
JIT-implemented `list?' did not actually set flags on
a pair that has a hash code. This could lead to `list?'
tests that were not constant time (but only if the relevant
pair's `eq?' hash code had been used previously).
2011-07-31 04:43:24 -06:00
Vincent St-Amour
5b22dfb6b0
Add for*/sum: and for*/product: to TR.
...
These currently don't play nice with inference, so they only work in
limited cases.
2011-07-29 12:54:29 -04:00
Vincent St-Amour
6a8011854b
Add for/sum: and for/product: to TR.
2011-07-29 12:54:29 -04:00
Eli Barzilay
7585edbcb6
xrepl improvments:
...
* a single function to set up all environment parameters.
* improve `getarg's treatment of default thunk
* Add an error display handler that doesn't show the context and instead
add a ,bt command to show it.
2011-07-29 07:29:29 -04:00
John Clements
0bcff68226
minor testing changes
2011-07-28 22:51:00 -04:00
Matthew Flatt
f1160da419
add for/sum',
for/product', etc.
2011-07-27 05:47:46 +01:00
Jay McCarthy
99fd3546be
Adding serialization of theories
2011-07-26 08:22:19 -04:00
Eli Barzilay
61f628f2c6
fix error reporting in `reencode-output-port'
...
Closes PR 12077
2011-07-25 23:46:16 -04:00
Matthew Flatt
e01ee43300
fix error reporting in `reencode-input-port'
...
Closes PR 12076
2011-07-25 13:11:05 -04:00
Matthew Flatt
73b16c8578
don't constant-fold an fx operation if the result is non-fx
...
In fact, the result must be an fx on all platforms, since
compilation should be platform-independent.
2011-07-25 11:30:23 -04:00
Robby Findler
7d06ae80f4
do a better job putting the right info into the struct id for provide/contract's struct clauses
...
closes PR 12053
2011-07-24 23:25:39 -04:00
Jay McCarthy
6e59cbf1d7
Adding documentation and tests for xml/path
2011-07-24 16:58:59 -04:00
Jay McCarthy
75631c6f2a
Repairing tests
2011-07-24 16:58:59 -04:00
Jay McCarthy
df0e35b213
Adding the basics of the servlet testing library, but then discovered a weird error, and took a sidetrack to catch it. I'm making a commit to be able see if there were any real problems or if it is just broken tests
2011-07-24 16:58:59 -04:00
Stephen Chang
7e933ee8a4
fix stepper test-engine unclosed input-port (in windows) problem
2011-07-24 12:19:05 -04:00
Jon Rafkind
23e907aa5c
add printf. recognize strings as atoms
2011-07-22 14:43:45 -04:00
Jon Rafkind
d4ea3b5d79
parse multiple call arguments
2011-07-22 14:43:45 -04:00
Stevie Strickland
01396784c9
Fix set/c to conform to hash/c-like restrictions.
...
Since sets are implemented using the elements as the domain of a hash table,
the following must be true:
* element contracts for (seteq ...) must be flat
* element contracts for (seteqv ...) must be flat
* element contracts for (set ...) must be chaperones, and the resulting
contract is a chaperone contract
Also, change higher-order set/c contracts to be chaperone contracts
due to the new restrictions.
2011-07-21 18:49:06 -04:00
Vincent St-Amour
73140544ce
Clean up.
2011-07-21 17:06:03 -04:00
Vincent St-Amour
b068e4a53b
Add a lower-level interface to unstable/logging.
2011-07-21 17:06:03 -04:00
Jon Rafkind
1b914ead61
add optional val before functions and arguments
2011-07-20 19:22:30 -06:00
Jon Rafkind
292512221e
function == lambda. add new syntax for defining functions
2011-07-20 19:22:30 -06:00
Sam Tobin-Hochstadt
7a763a2da8
Fix types of kernel struct constructors to include parent fields.
...
Merge to 5.1.2.
2011-07-20 15:19:53 -04:00
Eric Dobson
e07ce478af
Switched name field in struct type to identifier. Closes PR 11728.
...
Closes PR 11998. Closes PR11859.
2011-07-19 16:47:13 -04:00
Eric Dobson
a7f0f7591d
Fixed types for path operations. Closes PR12057.
2011-07-19 16:47:13 -04:00
Eli Barzilay
f5e53de4d9
XREPL tests.
...
Not too much, but already tests large parts of sensitive code. Caught a
bug where ,top would use (enter! #f) but enter grabbed the wrong
namespace since it was instantiated in the wrong namespace.
2011-07-19 16:39:15 -04:00
Vincent St-Amour
419398ce1a
Fix test to not be dependent on floating-point printing.
2011-07-19 15:19:17 -04:00
Vincent St-Amour
29882d8fa1
Remove redundant precision-loss messages.
2011-07-19 15:19:17 -04:00
Jon Rafkind
a7768a13a3
use #%module-begin for honu modules so top level expressions get printed
...
macros return whether they terminate parsing
2011-07-19 11:00:32 -06:00
Stevie Strickland
6bf13ee2dd
For lack of a colon, unit tests were failed.
2011-07-19 08:25:42 -04:00
Sam Tobin-Hochstadt
42b79dd489
Fix Typed Racket handling of exception handling with multiple return values.
2011-07-18 17:42:28 -04:00
Jon Rafkind
3a1dde7f14
parse arguments. provide basic math operations
2011-07-18 11:28:34 -06:00
Stephen Chang
7eedae8f69
fix lazy stepper test - lazy-cond1
2011-07-18 12:34:14 -04:00
Ryan Culpepper
5cf2767e7a
macro-stepper: update tests
2011-07-18 09:01:26 -06:00
Robby Findler
a0e08514b1
fixed up contract test suite
2011-07-18 07:55:54 -05:00
Guillaume Marceau
adf965e92a
Undoes the 'produces -> return' part of commit c31d352f
, keeping the 'changes -> mutates' change and the assorted bug fixes it contained.
2011-07-17 16:48:12 -04:00
Robby Findler
2308701476
add a test case for the contract system error (and adjust the fix a little bit)
2011-07-16 22:52:32 -05:00
Matthew Flatt
92671ab3ea
fix source name of built-in modules
...
Closes PR 12051
Merge to 5.1.2
2011-07-16 21:42:57 -06:00
Matthew Flatt
67272f114b
belated test case for cm ".dep"-read fix
...
Merge to 5.1.2
2011-07-16 21:25:56 -06:00
Matthew Flatt
701c9666d6
fix printing of namespace with places enabled
...
This commit goes with 62acb298bd
.
2011-07-16 21:17:10 -06:00
Matthew Flatt
bd10ccc1b7
don't compile test file with image constant
2011-07-16 19:29:35 -06:00
Robby Findler
75c1aa5f4d
adding teaching language executable creation test case
2011-07-16 09:38:45 -05:00
Matthew Flatt
4307bcace5
fix taint behavior of some syntax operations
...
`syntax-local-get-shadower' and
`syntax-make-delta-introducer' both taint their
results when a given syntax object is tainted
2011-07-16 08:03:54 -06:00
Robby Findler
7993d38e35
fix a bug in the arity checking for contracts
2011-07-15 21:25:10 -05:00
Matthew Flatt
0f61d62ea1
fix errortrace
...
The `eq?'ness of syntax objects used to reconstruct the result
was broken by disarming. The solution is to reconstruct based
on the disarmed syntax object instead of the original.
Merge to 5.1.2.
2011-07-15 20:17:44 -06:00
Kevin Tew
bf4a8ad5c4
create hash codes for place shared objects
2011-07-15 13:06:07 -06:00
Vincent St-Amour
5d4d9f2636
Add test for missed opts in multi-file programs.
2011-07-15 15:04:58 -04:00
Vincent St-Amour
db9d51fef7
Change the structure of the "extra precision" missed optimizations.
...
Avoids reports that are almost duplicates.
2011-07-15 15:04:58 -04:00
Vincent St-Amour
f4c3e51d3b
Make a test a bit more complicated.
2011-07-15 15:04:56 -04:00
Vincent St-Amour
c5d46449b7
Fix new optimization to use the new loggin facilities.
2011-07-15 15:04:55 -04:00
Vincent St-Amour
34ccf6a3fb
Fix new optimization to use new logging.
2011-07-15 15:04:54 -04:00
Vincent St-Amour
d146f8c590
Report missed fixnum optimizations.
2011-07-15 15:04:54 -04:00
Vincent St-Amour
fbf802e61c
Fix tests.
2011-07-15 15:04:54 -04:00
Vincent St-Amour
9640d2bfbc
Fix tests for new log format.
2011-07-15 15:04:53 -04:00
Vincent St-Amour
5e5fdb2981
Remove redundant optimization reporting.
2011-07-15 15:04:52 -04:00
Vincent St-Amour
8d680ced89
Display larger regions for optimizations.
2011-07-15 15:04:52 -04:00
Vincent St-Amour
a71a45e41f
Relocate TR logging capture.
2011-07-15 15:04:51 -04:00
Guillaume Marceau
c31d352f2b
Standartize the vocabulary to "the function returns" and "set! mutates"
2011-07-15 03:27:27 -04:00
Robby Findler
00bb92816c
cleaned up the generated code for -> and friends
2011-07-14 22:58:12 -06:00
James Swaine
e9460282ac
Deleted junk code that was commented out in the futures test suite
2011-07-14 19:44:19 -06:00
James Swaine
32a3828a2e
Made continuation-mark-set-first future-safe. Fixed a rarely occurring bug with lightweight continuation capture for futures.
2011-07-14 19:30:52 -06:00
Matthew Flatt
7be0c8236f
fix `procedure-reduce-keyword-arity' checking
...
and clarify need for distinct keywords in parts of the
documentation
2011-07-14 17:07:18 -06:00
Jon Rafkind
3736571ad0
fix sequences
2011-07-14 16:54:26 -06:00
Jon Rafkind
a29d64b44a
enable #lang honu
2011-07-14 16:54:26 -06:00
Jon Rafkind
57a759c383
fix parsing for operators
2011-07-14 16:54:26 -06:00
Vincent St-Amour
adeef671cd
Fix TR tests to use the new contract error message format.
...
If 7b9b3c371b
is included in the release, this should be too.
2011-07-14 17:06:52 -04:00
Eric Dobson
e6030295ff
Fix kernel-struct tests in TR.
2011-07-14 17:06:52 -04:00
Eric Dobson
bf72db0f7b
Clean up some contract errors and type->contract. Closes PR11756.
2011-07-14 17:06:52 -04:00
Eric Dobson
5e08f7a411
Fixes for inference. Closes PR10937.
2011-07-14 17:06:51 -04:00
Eric Dobson
8a2c9b4682
TR: Produce better error messages with values. Closes PR11772.
2011-07-14 17:06:51 -04:00
Jon Rafkind
3e96a1e66e
parse operators
2011-07-13 16:09:22 -06:00
Jon Rafkind
acb3bce1e7
add function as a macro
2011-07-13 16:09:21 -06:00
Jon Rafkind
41b66d3fc2
fix requires
2011-07-12 23:21:45 -06:00
Robby Findler
7b9b3c371b
adjusted the wording of the contract error messages to move away from <>'s and added more colons
2011-07-12 22:03:07 -06:00
Jon Rafkind
2737351c4a
start new honu implementation
2011-07-12 10:37:23 -06:00
Vincent St-Amour
59a85b3eb2
Add list optimizations.
2011-07-11 15:55:07 -04:00
Vincent St-Amour
79ef8e889e
Fix test for new contract error message format.
2011-07-11 15:35:49 -04:00
Vincent St-Amour
427eaca513
Add tests for jitted real->*-flonum.
2011-07-11 14:21:41 -04:00
Matthew Flatt
cc6f3f69ab
add `port-set-next-location!'; make prompt read handler use it
...
Closes PR 12035
2011-07-10 08:36:47 -06:00
Eli Barzilay
ebe9453e73
Fix the path relative functions to return a string for a path input,
...
clarify the documentation, add a few tests.
Fixes pr 12032
Fixes pr 12034
2011-07-10 06:53:44 -04:00
Matthew Flatt
e765231dad
fix hash-ref' bugs on immutable
eq?'-based tables
...
There were two:
* new: after finding a hash code, the key wasn't
always checked to be `eq?' to the desired key
* old: the hash code wan't downshifted by 2, so
changes in the low two bits (like when a pair
is determined to start a list) could break
lookup
Merge to 5.1.2
2011-07-09 20:12:59 -06:00
John Clements
3030fd3f4a
test-engine now sets current-directory before running tests
2011-07-09 17:17:49 -07:00
Matthew Flatt
3d03e8f884
fix define-primitive' and
provide-primitive'
...
Allow the implement to follow the `define-primitive'
or `provide-primitive' declaration.
2011-07-09 16:57:56 -06:00
Carl Eastlund
d5b852c386
Updated unit contract tests to not rely on a specific format for names of
...
blamed modules in contract error messages.
2011-07-09 17:28:04 -04:00
Carl Eastlund
b3136095ea
Changed default blame formatter to report blame parties relative to collection
...
and planet directories where appropriate. Added a test for this behavior.
2011-07-09 14:48:14 -04:00
Matthew Flatt
584a96a4e0
fix define-primitive' and
porvide-primitive' to check binding
...
Closes PR 12031
2011-07-09 08:54:36 -06:00
Robby Findler
fbccf38d50
completed the planet library documentation and, in the process,
...
cleaned up various dependencies and exports from some of the libraries
2011-07-08 15:51:05 -05:00
Matthew Flatt
b98e1b189a
change semantic of internal definitions
...
and `letrec-syntaxes+values' --- allowing `let' in place
of `letrec', which in turn lets the compiler optimize
away location allocation
2011-07-08 14:00:41 -06:00
Matthew Flatt
0e95d49ddb
allow more expression reordering, especially unsafe ops
2011-07-08 06:23:29 -06:00
Matthew Flatt
65b1a569a0
add `unsafe-list-{ref,set}'
...
Use the new functions in `syntax-case'; the benefit is small, and
it's mostly useful as hint to the optimizer that the operation
can be dropped if the result isn't used
2011-07-08 06:23:29 -06:00
Kevin Tew
68d49e9f59
Add assertions to place-channel tests
2011-07-07 12:38:20 -06:00
Sam Tobin-Hochstadt
e972c0c392
Have DrDr keep ignoring the random seeds.
2011-07-07 14:24:28 -04:00
Matthew Flatt
2840e2367b
fix ASL `(begin0)' error message
2011-07-07 10:57:04 -06:00
Vincent St-Amour
50974440f4
Fix test to avoid differences in printing.
2011-07-07 11:41:59 -04:00
John Clements
77a31dc2af
fix a stepper bug related to recent change to handling of module-level defines
2011-07-06 23:22:29 -07:00
Vincent St-Amour
0494e16d4f
Fix tests.
2011-07-06 18:34:14 -04:00
Vincent St-Amour
4947090191
Fix benchmark to reflect changes to flvector ops types.
2011-07-06 18:32:47 -04:00
Vincent St-Amour
2e6b518c95
Add an extra test for partial bounds checking elimination.
2011-07-06 18:09:35 -04:00
Vincent St-Amour
a7459c5ee7
Do partial bounds checking elimination for flvector operations.
2011-07-06 18:09:31 -04:00
Vincent St-Amour
979545a90f
First stab at optimizing bounds checking.
2011-07-06 18:09:29 -04:00
Jay McCarthy
4c276ea010
Attempting to fix a very brittle test case
2011-07-06 15:21:39 -06:00
Matthew Flatt
6b4b95c569
fix `unsafe-struct-{ref,set}' for chaperones
2011-07-06 15:08:41 -06:00
Kevin Tew
36e3679854
Scheme_Place_Object is now under gc control, multiple places can wait on a place channel.
2011-07-06 13:27:50 -06:00
Matthew Flatt
ff49859c80
git: fix "&" and "_" handling in labels
2011-07-06 09:54:57 -06:00
Matthew Flatt
de54efc84e
cocoa: fix "&" handling in menu-item labels
...
Closes PR 12025
2011-07-06 09:54:41 -06:00
Guillaume Marceau
c287519cc0
Updated the expected errors messages in the tests to match the new vocab.
2011-07-06 08:47:15 -04:00
Guillaume Marceau
9706920055
Updated the error messages of the world and universe teachpacks.
2011-07-06 05:35:27 -04:00
Guillaume Marceau
aa9dbd21f5
Updated the error message of check-expect. Fine tuning of the error messages.
2011-07-06 05:35:25 -04:00
Guillaume Marceau
6eea5b1793
The new error messages now pass the tests/language-test.rkt suite
...
(except for contract runtime error messages in levels higher than
beginner.)
2011-07-06 00:19:26 -04:00
Guillaume Marceau
f858b8bb5c
Htdp no longer throws exceptions that have no source information
2011-07-06 00:19:24 -04:00
Guillaume Marceau
79589b9b9f
The htdp test suite now checks that the correct error messages are thrown.
2011-07-06 00:19:22 -04:00
Vincent St-Amour
867f1e9097
Fix syntax test harness to work with compiled tests.
2011-07-05 16:28:25 -04:00
Vincent St-Amour
669523477a
Add a test suite for the syntax collect.
2011-07-05 15:06:24 -04:00
Eric Dobson
b25ee81d79
Changed TR test to use struct with struct info instead of HTDP struct.
2011-07-05 11:25:11 -04:00
Eric Dobson
805e1fb309
Correctly require/typed structs with parents. Closes PR11509.
2011-07-05 11:25:10 -04:00
Eric Dobson
0b76178138
Fix typechecking of call-with-values. Closes PR11709.
2011-07-05 11:25:10 -04:00
Eric Dobson
046d476970
Add types for kernel struct constructors.
2011-07-05 11:25:10 -04:00
Matthew Flatt
1daa2649f0
another fix for `vector-{ref,set!}' on chaperone/impersonator
...
--- fixes a81917a2692; drop this commit if that one is dropped
2011-07-05 06:29:32 -06:00
Matthew Flatt
67e5b3d364
fix import collision
...
--- probably due to the addition of `identity' to `scheme[/gui]',
but the test file should require `scheme/gui/base'
2011-07-04 16:39:36 -06:00
Matthew Flatt
e3b8997fb8
fix test
...
which is sensitive to details of the documentation of `->'
2011-07-04 16:35:38 -06:00
Stevie Strickland
d3ebf21d97
Fix the unit contract tests due to changes in contract violation reports.
2011-07-03 00:47:58 -04:00
Jay McCarthy
8da2f537fb
Another test that is sensitive to the contract error message text
2011-07-02 14:50:24 -07:00
Jay McCarthy
7a602b8864
What are tests for anyway?
2011-07-02 14:47:54 -07:00
Jay McCarthy
8d6827e741
Thank you for breaking tests by a semantics-ignoring Search&Replace and then ignoring that DrDr caught the break.
2011-07-02 14:15:20 -07:00
Jay McCarthy
f55ec3def7
It is very odd that racket/load doesn't let this work
2011-07-02 14:04:52 -07:00
Jay McCarthy
65ebdc4f90
Fixing this test
2011-07-02 14:01:32 -07:00
Jay McCarthy
bd46637210
This test is sensitive to the JIT, it seems
2011-07-02 13:51:31 -07:00
Jay McCarthy
88bf52c88b
These tests are sensitive to the contract error messages
2011-07-02 12:19:41 -07:00
Robby Findler
df6590b80f
adjust contract violation message by putting the name at the start of the message. For example, this:
...
contract violation, expected <(or/c (quote clean) (quote armed) (quote tained))>, given: #f
contract on wrapped from 'zo-structs, blaming 'no-dep
contract:
(->
any/c
(listof wrap?)
(or/c 'clean 'armed 'tained)
wrapped?)
at: C:\tmp3.rkt:6.21
becomes this:
wrapped: contract violation, expected <(or/c (quote clean) (quote armed) (quote tained))>, given: #f
contract from 'zo-structs, blaming 'no-dep
contract:
(->
any/c
(listof wrap?)
(or/c 'clean 'armed 'tained)
wrapped?)
at: C:\tmp3.rkt:6.21
(apologies if the indenting isn't quite right above; vi messed with it when I tried to paste it in ...)
2011-07-03 00:04:12 +08:00
Eli Barzilay
3157955d40
".ss" -> ".rkt" scan done.
2011-07-02 10:37:53 -04:00
Eli Barzilay
3e755eba11
Misc improvements
2011-07-02 01:10:38 -04:00
Eli Barzilay
226f86d201
Try to improve the tests wrt timeouts and memory limits
2011-07-02 01:10:38 -04:00
Matthew Flatt
e46a470f8d
places fixes: Windows leaks, custodian force-exit, stdio interaction
2011-07-01 14:31:56 -06:00
Eric Dobson
4439638308
Don't export required bindings with all-defined-out and require/typed.
...
Closes PR11425.
2011-07-01 16:06:15 -04:00
Carl Eastlund
97642c1cb6
Fixed syntax/parse bug:
...
Syntax classes with keyword arguments were unintentionally requiring all
arguments at an application site to be in alphabetical order.
Added a test for this fix.
2011-07-01 15:32:34 -04:00
Matthew Flatt
3078d5c494
clean up place exit handling
...
- don't crash on multiple kills or waits
- allow the OS to reclaim the place thread when it exits on its own
2011-07-01 09:30:11 -06:00
Robby Findler
69b5daa9e6
remove docs tests that no one was interested in
2011-07-01 11:38:09 +08:00
Vincent St-Amour
cd34760a33
Add a test case for struct-based match expanders.
...
Closes PR11617.
Using the taint system, the bug is fixed.
2011-06-30 14:21:52 -04:00
Eric Dobson
e3c4955ac9
Changed order type annotations are processed. Closes PR 11560.
2011-06-30 14:01:47 -04:00
Vincent St-Amour
43efe6adf0
Remove trailing whitespace.
2011-06-30 14:01:47 -04:00
Eric Dobson
b5e4515752
Changed order of imports in require/typed to order written.
...
Closes PR11193.
2011-06-30 14:01:47 -04:00
Eric Dobson
76a1112df0
Changed define-predicate to use recursive-contract. Closes PR 10939.
...
Closes PR11504.
2011-06-30 14:01:47 -04:00
Matthew Flatt
d4acf4f07a
fix another problem with attempted overflow clean-up
2011-06-30 10:53:19 -06:00
Kevin Tew
c3059f7e82
place-dead-evt
2011-06-30 10:02:21 -06:00
Matthew Flatt
37e4ea497b
check for integer overflow in vector reader syntax
...
Closes PR 12008
2011-06-30 09:46:02 -06:00
Matthew Flatt
e9477c17b4
fix JIT-generated `apply-values' for chaperones
...
Closes PR 11981
2011-06-30 09:28:07 -06:00
Matthew Flatt
b86e96cf90
fix optimizer bug that reordered past a mutable variable
...
Closes PR 11987
2011-06-30 09:17:42 -06:00
Matthew Flatt
737a3bd91a
fix too-early large-allocation check
...
Closes PR 12000
2011-06-30 08:56:28 -06:00
Matthew Flatt
1160d3df62
remove syntax certificates; add syntax taints
2011-06-29 19:15:48 -06:00
Eric Dobson
d0cfebd5b4
Make TR provided struc-infos act like constructors. Closes PR11578.
...
Closes PR11866.
2011-06-29 17:38:05 -04:00
Eric Dobson
e87ff268c2
Added legacy support for require/typed and require-typed-struct.
...
Added FIXME for duplicated code.
2011-06-29 17:38:05 -04:00