Commit Graph

4826 Commits

Author SHA1 Message Date
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
Eric Dobson
ecaf5f40a0 Cleaned up define-typed-struct-internal and require/typed.
Also fixed a test for require/typed.
2011-06-29 17:38:05 -04:00
Eric Dobson
f3692eae29 Added support for configurable constructor names in require/typed.
Closes PR11171. Closes PR11194. Closes PR11314.
2011-06-29 17:38:05 -04:00
John Clements
3f50dc7f2c refactored to move test cases into a separate file(s) 2011-06-29 12:42:18 -07:00
John Clements
0061218266 added test of let* unwinding, moved shared.rkt unit tests out here 2011-06-29 00:24:02 -07:00
John Clements
2891869371 added tests of require 2011-06-28 18:43:04 -07:00
Eli Barzilay
0af236dc2f Add block' to scribble/text', to explicitly ask for an indentation block.
* Lists are now either blocks or splices depending on whether they
  appear inside a block or a splice (default to block).

* Adjusted the docs and a single test where this mattered.

* Change the documentation to be "text.html" and to be titled "text
  generation".
2011-06-28 18:16:07 -04:00
Jay McCarthy
fa77770eac Adding initial value to textarea-input 2011-06-28 08:41:38 -06:00
Jay McCarthy
13ff06aee5 Fixing example from Naurin Zamir 2011-06-28 08:41:38 -06:00
Eli Barzilay
40124a0619 A long overdue scan to eliminate files without terminating newlines.
(DrRacket should really do that.)
2011-06-28 02:01:41 -04:00
Jay McCarthy
359ac41a45 Updating textarea-input re Shogo 2011-06-27 12:08:20 -06:00
Eric Dobson
a14723f27a Make vector-immutable work like vector. Closes PR 11535. 2011-06-27 11:35:48 -04:00
Sam Tobin-Hochstadt
f6be5447dd Rename to follow TR naming conventions. 2011-06-24 20:20:53 -04:00
Eric Dobson
0f0b9ebc7a TR: Added tests for new identifiers and export type names. 2011-06-24 20:10:37 -04:00
Sam Tobin-Hochstadt
19a7a37033 Fix rackunit types to be Any', not Void'. 2011-06-24 18:10:25 -04:00
Eric Dobson
ce0f542028 Correctly recreate Scopes. Closes PR 10552. Closes PR 11532. 2011-06-24 16:46:43 -04:00
Jay McCarthy
6abeab42d5 Updating require paths, making tests succeed, and fixing docs 2011-06-24 13:48:41 -06:00
Jay McCarthy
375d6b8497 Initial adding of temporal contract library 2011-06-24 13:48:40 -06:00
Kevin Tew
508388ed61 Remove define-place from racket/place 2011-06-24 11:12:37 -06:00
Eric Dobson
d0d748c55a Corrects types for typed/rackunit. Closes PR 11912.
Signed-off-by: Sam Tobin-Hochstadt <samth@racket-lang.org>
2011-06-23 12:19:56 -04:00
Eric Dobson
4241557543 Change Module-Path to be union type instead of a Base type. Closes PR 11963. 2011-06-23 10:05:36 -04:00
Sam Tobin-Hochstadt
0df00e31d5 Add test for PR 10794. 2011-06-22 17:36:31 -04:00
Asumu Takikawa
122aed8970 Add negate (racket/function) to TR 2011-06-22 16:04:19 -04:00
Asumu Takikawa
cee2509476 TR test for racket/function 2011-06-22 16:04:19 -04:00
Eric Dobson
16ee3376f7 TR: Added more tests for recently typed identifiers. 2011-06-22 15:17:58 -04:00
Eric Dobson
c2a473cba2 Added tests for parameterizations and thread cells. 2011-06-22 15:17:57 -04:00
Eric Dobson
f5a7e73be8 TR: Added some syntax and set tests. 2011-06-22 15:17:57 -04:00
Eric Dobson
f5517367e5 Added tests for filesystem operations, and added public type names. 2011-06-22 15:17:57 -04:00
Sam Tobin-Hochstadt
f195b3c689 Remove `SomeSystemPath'. 2011-06-22 14:28:51 -04:00
Sam Tobin-Hochstadt
9be4b16703 Rename SomeSystemPath to `Path-For-Some-System' 2011-06-21 15:34:50 -04:00
Eric Dobson
0f6fde5003 Fixes TR regexp regression. Closes PR11991. 2011-06-21 15:34:50 -04:00
Matthew Flatt
f3da5f7fd8 adjust and document net/url HTTPS support 2011-06-20 08:00:43 -06:00
Eli Barzilay
debd1f9f1e Recketizing much in `net/*', mass ".ss" -> ".rkt" conversion in .scrbl files.
(Some other minor things here and there.)
2011-06-20 04:27:14 -04:00
Robby Findler
62a337231a added more options into the place-chan-rand test; seems to still (rarely) cause a crash 2011-06-20 05:35:25 +08:00
Matthew Flatt
5a5800d513 place-specific low-level "sleep" function
to make racket/gui work right with places (running
 in just one of them) on Mac OS X
2011-06-17 17:03:21 -06:00
Vincent St-Amour
88dafca69f Update test format. 2011-06-17 18:18:04 -04:00
Vincent St-Amour
26b909744c Display irritants nicely. 2011-06-17 18:18:04 -04:00
Vincent St-Amour
e8dcee732e Don't merge missed optimizations repeatedly, which artificially increases badness. 2011-06-17 18:18:04 -04:00
Vincent St-Amour
fc08b4d401 Display badness of missed optimizations. 2011-06-17 18:18:04 -04:00
Vincent St-Amour
9dbca39cfe Use write instead of display for syntax in logs. 2011-06-17 18:18:04 -04:00
Vincent St-Amour
dda1b1c880 Don't keep useless return values around. 2011-06-17 18:18:04 -04:00
Vincent St-Amour
847e4b2e23 Do duplicate detection at the expanded syntax level, instead of the source level. 2011-06-17 18:18:04 -04:00
Vincent St-Amour
866225b659 Adapt the log update script to work on specific files. 2011-06-17 18:18:04 -04:00
Vincent St-Amour
fddf189530 Report opts and missed opts in terms of the original programs, not in terms of expanded code. 2011-06-17 18:18:04 -04:00
Vincent St-Amour
fc25b43293 Add script to update test files to new log formats. 2011-06-17 18:18:03 -04:00
Vincent St-Amour
86efbc8396 Specify opt or missed opt in the TR log format. 2011-06-17 18:18:03 -04:00
Vincent St-Amour
9f78a92613 Fix test log to use new format. 2011-06-17 18:18:03 -04:00
Vincent St-Amour
1a2080fc97 Handle the case where we would need to merge with multiple children at once. 2011-06-17 18:18:02 -04:00
Vincent St-Amour
8d2f66faa6 First attempt at handling missed optimization cascades.
Currently, if missed optimizations a and b are of the same kind, a is caused
by b, and b is caused by c, we merge them into a single miss with cause c.

This works in some cases, but fails in others.
2011-06-17 18:18:02 -04:00
Vincent St-Amour
4c31b08554 Put logging code in its own file. 2011-06-17 18:18:02 -04:00
Vincent St-Amour
6b5095df2d Have multiple irritants for missed optimizations. 2011-06-17 18:18:02 -04:00
Vincent St-Amour
cb706aab9c Change log message to reflect new behavior. 2011-06-17 18:18:02 -04:00
Vincent St-Amour
f547b99ed5 Remove useless irritant. 2011-06-17 18:18:02 -04:00
Vincent St-Amour
9528f63cf0 Swap miss region and irritant. 2011-06-17 18:18:02 -04:00
Vincent St-Amour
647ae4fe9a Report missed optimizations for unary float operations. 2011-06-17 18:18:01 -04:00
Vincent St-Amour
484fb029f1 Rephrase a missed optimization message. 2011-06-17 18:18:01 -04:00
Vincent St-Amour
a319ba1058 Fix missed-optimization tests to also look for optimization messages. 2011-06-17 18:18:01 -04:00
Vincent St-Amour
e8621f58ea Fix optimization tests to also look for missed-optimization messages. 2011-06-17 18:18:01 -04:00
Vincent St-Amour
28692786b3 Have optimizer test harness look only at log messages that came from the optimizer. 2011-06-17 18:18:01 -04:00
Vincent St-Amour
641dd731ab Fix optimizer test harness to use the new syntax of with-logging-to-port. 2011-06-17 18:18:01 -04:00
Vincent St-Amour
09015722e3 Use with-logging-to-port from unstable. 2011-06-17 18:18:01 -04:00
Vincent St-Amour
47f48c08ad Revise with-logging-to-port to avoid the extra dummy log entry. 2011-06-17 18:18:01 -04:00
Vincent St-Amour
a2afe2c285 Adapt the optimizer's test harness for the new logging strategy. 2011-06-17 18:18:01 -04:00
Vincent St-Amour
28cbad21b9 Add a directory for optimizer tests that we know fail. 2011-06-17 18:18:00 -04:00
Vincent St-Amour
9ae4f82c0a Sort optimizer logs by source location, to prepare for eventual user consumption. 2011-06-17 18:18:00 -04:00
Vincent St-Amour
5a151420e4 Keep source location around for derived pair optimizations. 2011-06-17 18:18:00 -04:00
Vincent St-Amour
b8b061fb39 Don't print duplicate log entries. 2011-06-17 18:18:00 -04:00
Vincent St-Amour
147032e428 Extra test for precision loss. 2011-06-17 18:18:00 -04:00
Vincent St-Amour
0432ea16cb Add an extra test that checks for non-reporting of false positives. 2011-06-17 18:18:00 -04:00
Vincent St-Amour
b598c4a1eb close-call -> missed-optimization 2011-06-17 18:18:00 -04:00
Vincent St-Amour
c73bc6c918 Report unexpected complex types in arithmetic expressions. 2011-06-17 18:18:00 -04:00
Vincent St-Amour
2a4a4e8184 Generalize reporting of wasted precision to arbitrary exact arithmetic expressions. 2011-06-17 18:18:00 -04:00
Vincent St-Amour
cd027109c9 Report when exact arithmetic is used inside float expressions, which may make the extra precision useless. 2011-06-17 18:17:59 -04:00
Vincent St-Amour
fb36786c4d Add failing test for nicer reporting of cascades of missed optimizations. 2011-06-17 18:17:59 -04:00
Vincent St-Amour
5d4ef5c624 Add a test case for close-calls on all-real arithmetic expressions. 2011-06-17 18:17:59 -04:00
Vincent St-Amour
89ca99210e Report close calls for pair/mpair optimizations. 2011-06-17 18:17:59 -04:00
Vincent St-Amour
526a84f10b Add extra checks to avoid spurious close call reporting involving integer operations. 2011-06-17 18:17:59 -04:00
Vincent St-Amour
95bf94577c Show irritant for the currently detected close calls. 2011-06-17 18:17:59 -04:00
Vincent St-Amour
0fab9e11ad Revert "Fix optimizer expected log format."
This reverts commit bdf1073f17.

Return that test to the new format, which it was originally written in.
2011-06-17 18:17:59 -04:00
Vincent St-Amour
33962befd4 Made logging format more compact and less ambiguous. 2011-06-17 18:17:59 -04:00
Vincent St-Amour
7b2c6f5765 First attempt at logging unexpected Real types popping up. 2011-06-17 18:17:58 -04:00
Vincent St-Amour
2e0dd6467a Add support for close-call tests to the TR test harness. 2011-06-17 18:17:58 -04:00
Robby Findler
f8f289adc0 fix random place tests 2011-06-18 05:15:36 +08:00
Sam Tobin-Hochstadt
55a25a825a Disable this test. 2011-06-17 15:17:20 -04:00
Eric Dobson
0671945a8d Moved tests for equality to unit tests 2011-06-17 15:17:20 -04:00
Eric Dobson
b326269133 Moved new TR symbol testing into unit tests. 2011-06-17 15:17:20 -04:00
Eric Dobson
3a13cf0e78 Moved TR string testing to unit tests. 2011-06-17 15:17:20 -04:00
Eric Dobson
54a12afb49 Added types and some tests for port operations 2011-06-17 15:17:19 -04:00
Eric Dobson
c77e906c7a Added types and tests for equality operations. 2011-06-17 15:17:19 -04:00
Eric Dobson
2d152bac79 Added types and tests for raising and handling exceptions 2011-06-17 15:17:19 -04:00
Eric Dobson
4ba12dd20e Added types and tests for symbol operations 2011-06-17 15:17:19 -04:00
Eric Dobson
ab23db7b5b Added types and tests for string operations 2011-06-17 15:17:19 -04:00
Eli Barzilay
f6620d5754 Close the input port so that the file can be deleted on windows. 2011-06-17 13:19:24 -04:00
Matthew Flatt
7089a17ba2 fix `make-limited-input-port' limit tracking for committed peeks
and make the port thread-safe
2011-06-17 11:14:50 -06:00
Matthew Flatt
b1e47eba45 add `place-message-allowed?' and fix related problems
Closes PR 11983
2011-06-17 10:33:27 -06:00
Robby Findler
8e80af6f42 random testing for messages sent over place channels
related to PR 11983
2011-06-17 18:46:59 +08:00
Danny Yoo
d78fccb75b Fixing the comment-at-end-of-file bug (PR#11982) 2011-06-16 21:37:48 -04:00
Matthew Flatt
523cec90c6 fix JITted multi-valued `begin0' in a single-value context
and generate simpler code for constrained cases, including
 single-value contexts and ignored results

 Closes PR 11979
2011-06-16 18:16:02 -06:00
Vincent St-Amour
26541ffbbd Unify types and filter behavior of not and false?. 2011-06-16 18:08:44 -04:00
Stevie Strickland
477c5acb2a Fix names in test to make them test-specific. 2011-06-16 16:51:38 -04:00
Matthew Flatt
56423f330e `procedure-arity-includes?' reports #f for keyword-requiring procs
by default; a new optional argument restores the old behavior
  (but the default behavior is consistent with the old docs and with
  the vast majority of existing uses)

 The implementation is ugly for performance reasons. A new primitive
  `prop:arity-incomplete' property determines when to return #f for
  `procedure-arity-includes?' in default mode. A nicer implementation
  would be to redefine `procedure-arity-includes?' at the kw-proc level,
  but the bytecode optimizer's and JIT's treatment of the built-in
  `procedure-arity-includes?' is important. The implementation choice
  could be revisited after cross-module inlining is implemented.

 Closes PR 11978
2011-06-16 12:36:16 -06:00
Stevie Strickland
649fe2f276 Fix #%app bindings for `with-contract'-based contract forms.
Closes PR11975.
2011-06-16 14:25:01 -04:00
Matthew Flatt
a919062143 support progress evts in result of `make-limited-input-port'
and also adjust initial position in various port constructions
 to use `file-position' instead of `port-next-location'
2011-06-16 09:18:47 -06:00
Matthew Flatt
83d002a9aa fix interaction of `port-commit-peeked' and port positions
--- includes a small hack to the `make-input-port' protocol
     to specially handle a byte-string result as "true"
     from the `commit' proc
2011-06-16 08:17:14 -06:00
Sam Tobin-Hochstadt
eaa156554a Add contracts for `Sequenceof' values. 2011-06-15 17:02:09 -04:00
Kevin Tew
4176f093b8 place -> dynamic-place and place-wait return value fixes 2011-06-15 11:09:02 -06:00
Vincent St-Amour
e057e6a857 Optimize in typed regions. 2011-06-15 11:20:51 -04:00
Sam Tobin-Hochstadt
b76819a66e Wrap expected type. Closes PR 11980. 2011-06-14 19:05:16 -04:00
Eli Barzilay
be84425bd0 Rewrite compose' and add compose1'.
The new version fixes some problems with the previous one, most notably
it can create a keyworded function when the last input is is keyworded.
`compose1' is a restricted variant that requires single values in the
composed pipeline -- besides being potentially faster (probably more
if/when there is cross module inlining), it has a semantical
justification, similar to the restricting function call arguments to
return single values, with similar robustness benefits.  The
implementation of both is done in a generalized way, and the results can
be faster for both `compose' and `compose1'.  (Not by much -- 20% and
30% resp.)

One thing that it could do is to reduce the resulting arity to match the
last given function.  I didn't do this since it adds a significant
overhead to the result.  (No strong opinion on doing that...)
2011-06-14 19:02:30 -04:00
Eli Barzilay
e80308aa15 Make `test' messages show keyword arguments too. 2011-06-14 19:02:30 -04:00
Vincent St-Amour
2922821f3c Synthesize annotations for for/lists: if possible. 2011-06-14 17:53:27 -04:00
Vincent St-Amour
a5bccaffe1 Allow omitting type annotation in most of the for: forms. 2011-06-14 17:53:27 -04:00
Kevin Tew
939f0b1c0b rename place-dynamic to dynamic-place 2011-06-11 15:36:16 -06:00
Matthew Flatt
80c4396dc1 JIT-inline struct type property predicates and accessors 2011-06-11 08:35:34 -07:00
Eric Dobson
c7f9a80de8 TR: Changed type of port->list 2011-06-10 17:22:14 -04:00
Ryan Culpepper
c8a691490a syntax/parse: added literal-set->predicate
closes PR 11968
2011-06-10 13:22:26 -06:00
Kevin Tew
1473b7775f Places: rename place and place/anon 2011-06-10 11:07:01 -06:00
Matthew Flatt
8f6a4c5549 fix file suffix: ".rkt" for module files 2011-06-10 09:36:10 -07:00
Matthew Flatt
460504c852 add #:unless' to for' 2011-06-10 06:21:35 -07:00
Kevin Tew
21f7109204 Places: rename send receive to put get 2011-06-09 23:48:55 -06:00
Kevin Tew
dd4ee47ecd Cleanup place-channel benchmark use read-bytes 2011-06-09 23:48:25 -06:00
Kevin Tew
524b5ca50a Channels compared to dd 2011-06-07 13:53:37 -06:00
Eli Barzilay
17b6ffa731 Move thunk' from unstable/function' into `racket/function'.
Actually, the new `thunk' is a nullary function, which I think is very
popular expectation for the name.  Since there are possible uses for the
any-arity version, it's added too, as `thunk*'.
2011-06-07 03:38:06 -04:00
Eli Barzilay
a70ef57f02 Move identity' from unstable/function' into `racket/function'. 2011-06-07 03:38:06 -04:00
Eli Barzilay
2eb0a94677 Removed a bogus provide and two bogus tests.
(Which worked because the same functionality is part of `racket'.)
2011-06-07 03:38:06 -04:00
Vincent St-Amour
801354fa4a Add syntax-within? to unstable/syntax. 2011-06-02 18:37:42 -04:00
Matthew Flatt
bbfeb85440 mak argument to `make-immutable-hash' optional 2011-05-30 07:38:57 -06:00
Mike Sperber
c3d4e39630 Add DMdA teachpacks to documentation check.
Also, exclude obsolete DMdA exports from check.
2011-05-28 12:31:20 +02:00
Asumu Takikawa
f4aab53efa Added option/c for possibly #f values in unstable. 2011-05-26 00:37:06 -04:00
Asumu Takikawa
7f143f03ed Add impersonator-contract? along with docs/tests.
The impersonator-contract? function checks if its argument is
a contract that is neither flat nor a chaperone contract.
2011-05-26 00:37:05 -04:00
Tony Garnock-Jones
c888222fb6 Property accessors are now able to accept 1 or 2 arguments 2011-05-25 10:47:59 -04:00
Tony Garnock-Jones
7615c2a512 Implementation, documentation and tests for adding a failure-result to property accessor procedures. 2011-05-24 16:53:52 -04:00
John Clements
dcb5e896dd added raise-type-error to date->string, also test case 2011-05-24 10:24:31 -07:00
Vincent St-Amour
7b0f64de72 Don't run TR integration tests during nightly builds. 2011-05-23 13:58:28 -04:00
Stephen Chang
b4ab1bb093 fix bug in lazy stepper handling of cyclic lists 2011-05-22 01:54:46 -04:00
Jay McCarthy
291ee08736 Adding scriblib/bibtex. 2011-05-21 10:10:05 -06:00
Robby Findler
ce3e46b71a fix a bug in the planet packaging code that could result in the documentation not being included 2011-05-20 10:13:45 -05:00
Matthew Flatt
4b9d88cc1d fix `sequence->stream'
Closes PR 11932
2011-05-19 15:59:08 -07:00
Matthew Flatt
7060fa5b75 fix problems with `letrec' splitting and constant procedures 2011-05-19 15:15:01 -07:00
Kevin Tew
518f20142c 11930 bug fix: added missing scheme_seal_parameters call 2011-05-19 11:48:23 -06:00
Matthew Flatt
b6445880e2 add pre-multiplied mode for `{get,set}-argb-pixels' 2011-05-18 16:01:33 -07:00
Robby Findler
91f5fbcd88 added a test case for PR 11930 2011-05-18 10:05:39 -05:00
Matthew Flatt
905eb11651 fix alpha-only mode of `get-argb-pixels'
Closes PR 11927
2011-05-17 16:00:36 -07:00
Vincent St-Amour
bc4a7df94d Better solution to the toplevel printing bug. 2011-05-17 18:30:53 -04:00
Eric Dobson
9a65545814 Path manipulation now works with SomeSystemPath correctly. 2011-05-17 18:03:48 -04:00
Eric Dobson
05af2b9e17 Split Path type into Path and OtherSystemPath. 2011-05-17 18:03:48 -04:00
Vincent St-Amour
8f6d3c7920 Avoid printing results of tests when eliminating if branches at the toplevel.
Closes PR 11928.
2011-05-17 17:47:21 -04:00
Vincent St-Amour
1ed0e84791 Move base environment files to their own subdirectory. 2011-05-17 15:16:18 -04:00
Sam Tobin-Hochstadt
c2291e049d Add types for some of `syntax/stx'
Add hacked types for `with-syntax' internals.
2011-05-16 14:55:17 -04:00
Vincent St-Amour
bdf1073f17 Fix optimizer expected log format.
Optimizer log format was changed on a different branch, and this test
was written using that new format, which is not recognized on current
master.
2011-05-16 14:23:24 -04:00
Vincent St-Amour
4cd0ad4b1a Coerce reals in float expressions when valid. 2011-05-16 11:44:35 -04:00
Vincent St-Amour
e64ba228e8 Have the TR test harness skip emacs unsaved file backups. 2011-05-16 11:44:35 -04:00
Sam Tobin-Hochstadt
e92af62ca0 Add contract generation for Set type. 2011-05-15 22:53:20 -04:00
Kevin Tew
c9c02f3fb0 duplicate and cycle detection for places_deserialize_worker 2011-05-12 08:28:47 -06:00
Matthew Flatt
8492f7c90b fix symbol handling in long-message transfer
as well as stack-overflow handling
2011-05-11 15:04:59 -06:00
Robby Findler
c5f8add9ea avoid eval-compile-time-part-of-top-level when in the module language
Thanks to Ryan for spotting this call!
  Closes PR 11908
2011-05-10 14:10:28 -05:00
Kevin Tew
94d92092a5 deep copy stack overflow check 2011-05-10 06:37:39 -06:00
Robby Findler
0e58a37105 fixed up a test (that I hadn't meant to push the last time, sigh) 2011-05-09 15:34:01 -05:00
Robby Findler
553d9ff4c6 made set/c preserve flat-contract'ness of its argument 2011-05-09 08:49:12 -05:00
Robby Findler
f60f23496d added a drracket test 2011-05-08 22:30:24 -05:00
Sam Tobin-Hochstadt
2f3e9fc655 Add types for `in-hash' etc. 2011-05-08 15:36:48 -04:00
Matthew Flatt
153d23ecf0 adjust sandbox memory-limit test timeout 2011-05-08 06:26:04 -06:00
Eric Dobson
e9683e1dd2 Changed early failure in subtyping to all non-struct values, not just null. Closes PR 11887. 2011-05-06 11:39:01 -04:00
Sam Tobin-Hochstadt
af56616fc8 Require numeric-predicates at the correct phase.
Closes PR 11897.
2011-05-05 19:04:38 -04:00
Vincent St-Amour
4b03ecde2a Integrate the TR and TR optimizer test suites. 2011-05-05 18:54:12 -04:00
Vincent St-Amour
4ea9b29d12 Remove redundant checks from TR's optimizer tests.
Checking that the optimized and non-optimized versions return the same
results is unnecessary. Optimization logs, which are checked against
an expected log, already contain the results.
2011-05-05 18:54:12 -04:00
Vincent St-Amour
7b6edb452f Rewrite the optimizer test suite to use rackunit. 2011-05-05 18:54:12 -04:00
Vincent St-Amour
fa016ea576 Keep running TR tests even if optimizer tests fail. 2011-05-05 18:54:12 -04:00
Vincent St-Amour
850d4d325d Don't display name of non-test files. 2011-05-05 18:54:12 -04:00
Robby Findler
507b1cd8fd moved the docs-complete library into rackunit
to avoid having a separate, new manual for the
  one library
2011-05-05 16:10:42 -05:00
Robby Findler
d40b43c0a9 make the deinprogramm documentation drdr messages be accurate
(that is, I think that the complaints coming from the
   tests\deinprogramm\test-docs-complete.rkt message are
   now pointing out things for which there is actually no
   documentation, instead of pointing out the need for
   different declare-exporting declarations)
2011-05-04 18:54:28 -05:00
Robby Findler
d3c04ae701 Adjusted docs-complete to print a different message when there are no docs at all
and ... ummm... documented docs-complete
2011-05-04 18:54:25 -05:00
Matthew Flatt
34b8dc249e fix documented contracts for path functions
and make `cleanse-path' work for any platform's paths
  while fixing `resolve-path' checking to disallow paths
  for other platforms
 Closes PR 11891
2011-05-04 11:40:01 -06:00
Eric Dobson
f3c73a197e Changed Paths to PathStrings in types where appropriate 2011-05-03 18:20:31 -04:00
Eric Dobson
44f377bcd4 Correctly instantiate poly-dotted functions with zero arguments.
Closes PR 11776. Closes PR 11545.
2011-05-03 18:20:31 -04:00
Matthew Flatt
87a4132b40 fix zo-marshal' for #f toplevel-map in lam' 2011-05-03 14:43:27 -06:00
Kevin Tew
811154cb08 Indent fix 2011-05-03 14:40:02 -06:00
Kevin Tew
46dc051931 Turn places build back on, provide place-break. 2011-05-03 14:01:30 -06:00
Matthew Flatt
1b14c6a38e fix mistakes uncovered by optimizer warnings 2011-05-03 06:57:48 -06:00
Eric Dobson
613e121783 Struct types now generate flat contracts when appropriate.
Closes PR 11686.
2011-05-03 08:15:37 -04:00
Ryan Culpepper
1bf95392d2 syntax/parse: added litset extension 2011-05-03 01:25:41 -06:00
Ryan Culpepper
e5e12ab01a syntax/parse: added define-syntax-class/specialize 2011-05-02 21:02:11 -06:00
Robby Findler
d6ef130fd2 cleaned up framework docs 2011-05-01 14:16:04 -05:00
Mike Sperber
d582dd55dd Fix bug in vector signatures. 2011-05-01 11:18:10 +02:00
Robby Findler
c8d476c76e adjust scribble's racketblock renderer so that #true and #false
don't turn into #t and #f.
2011-04-30 20:35:16 -05:00
Jay McCarthy
8708268992 Fixing problems with %is discovered by Casey 2011-04-30 12:02:41 -06:00
Asumu Takikawa
7eb26c5d26 Added test for get-pos/text method result. 2011-04-29 18:56:36 -04:00
Vincent St-Amour
4d24cbee60 Promote more literals at compile-time. 2011-04-29 17:16:39 -04:00
Vincent St-Amour
d9451ef4ab Run optimizer tests in a throw-away namespace to reduce memory usage. 2011-04-29 15:28:30 -04:00
Sam Tobin-Hochstadt
0d246de293 Remove obselete shell script 2011-04-28 18:23:53 -04:00
Vincent St-Amour
632e36f751 Add set types to TR.
Original patch by Eric Dobson.
2011-04-28 18:22:39 -04:00
Vincent St-Amour
fc531c4dbf Fix chicken output processing. 2011-04-28 16:19:59 -04:00
Vincent St-Amour
7cf64050f8 Make tabulation script more resilient to incorrect input. 2011-04-28 16:19:59 -04:00
Vincent St-Amour
e11582a522 Chicken can do scheme2 now. 2011-04-28 16:19:58 -04:00
Kevin Tew
64ba1f2fa4 [Places] rename place-channel.rktl -> place-channel.rkt 2011-04-27 22:35:05 -06:00
Matthew Flatt
0e229529c0 JIT-inline `procedure-arity-includes?' 2011-04-27 14:10:21 -06:00
Vincent St-Amour
99f4ae14ee Bigloo does not report time in centiseconds anymore (as of 3.6a). 2011-04-27 14:14:26 -04:00
Vincent St-Amour
31df4384e1 Chicken doesn't print GC time if the GC doesn't fire. 2011-04-27 14:14:26 -04:00
Kevin Tew
028421432d [Places] place-channel tests for large messages 2011-04-27 11:50:45 -06:00
Vincent St-Amour
6d56ddcc10 Chicken changed its timing output format. 2011-04-27 11:03:06 -04:00
Vincent St-Amour
d52c7f2d78 Typo. 2011-04-27 11:03:06 -04:00
Vincent St-Amour
33348795c9 cpstack -> cpstak 2011-04-27 11:03:06 -04:00
Vincent St-Amour
fd2d9ba0be Bigloo can't compile nucleic2. 2011-04-27 11:03:05 -04:00
Vincent St-Amour
9c9c87aa09 Remove file that was accidentally committed. 2011-04-27 11:03:05 -04:00
Robby Findler
06ed2045ae adjust check-docs so that the skipped exports are a parameter 2011-04-26 23:27:48 -05:00
Matthew Flatt
d28d42a46f fix validator bug (to allow flonum-consuming proc to be cleared)
Closes PR 11879
2011-04-26 19:21:14 -06:00
Stephen Chang
5d47e58de3 add Lazy Racket tests from Premiers cours de programmation avec Scheme (Roy) 2011-04-26 19:13:41 -04:00
Jay McCarthy
5f1b390f64 moving 2011-04-26 16:46:55 -06:00
Jay McCarthy
c9286ce725 Moving... 2011-04-26 16:33:01 -06:00
Eric Dobson
c221c07076 made ephemeron test correct 2011-04-26 15:35:22 -04:00
Eric Dobson
80fa8d3c97 Beginning of ephemeron patch 2011-04-26 15:35:22 -04:00
Vincent St-Amour
7800e417d2 Fix benchmarking for bigloo to work with its default options. 2011-04-26 15:35:22 -04:00
Robby Findler
626bef922e dont insist that names beginning with #% are documented 2011-04-26 11:30:12 -05:00
Ryan Culpepper
585dc9c0a3 sort names to avoid spurious changes 2011-04-25 22:51:51 -06:00
Ryan Culpepper
ee6fa14ec4 automatically filter out names from serializable structs 2011-04-25 20:24:36 -06:00
Ryan Culpepper
bf5248e3b5 syntax/parse: changed #:declare back to "magical" scoping 2011-04-25 20:24:35 -06:00
Robby Findler
7701f75fb0 adjusted test-docs-complete.rkt tests 2011-04-25 19:00:01 -05:00
Robby Findler
e7d0029aea added lots of new tests that our documentation is complete 2011-04-25 13:24:43 -05:00
Robby Findler
a373eac5d8 added docs-complete.rkt 2011-04-25 13:18:51 -05:00
Vincent St-Amour
7e491392e1 Remove file that was accidentally committed. 2011-04-25 09:30:23 -04:00
Matthew Flatt
2f8006aa6b add an optional argument to `assoc'
and implement `assoc', `assq', and `assv' in Racket
2011-04-24 07:55:33 -06:00
Matthew Flatt
f4303cbef8 faster JITted path to `equal?' 2011-04-24 07:55:33 -06:00
Matthew Flatt
f54d977de1 JIT-inline `eqv?' 2011-04-24 07:55:32 -06:00
Robby Findler
41497cec6a avoid printing stacktrace information when the exception is a exn:fail:user?.
closes PR 11874
2011-04-24 07:45:07 -05:00
John Clements
b228316a8a updates to history
merge to 5.1.1 release
2011-04-22 14:28:18 -07:00
Robby Findler
e8ce23cc9a adjust the test-engine test suite so it prints errors to stderr
and thus drdr will send email when test cases fail
2011-04-22 06:16:43 -05:00
Kevin Tew
34fd6c35dd Typo fix 2011-04-21 20:55:34 -06:00
Kevin Tew
b1cd60213f Test all allowed types in place messages 2011-04-21 06:14:27 -06:00
Matthew Flatt
e47c9a2f9d allow cyclic values over place channels 2011-04-20 07:21:10 -06:00
Kevin Tew
3358ec8d10 Place-channel path test cases 2011-04-20 00:01:28 -06:00
Matthew Flatt
1932a453a8 enable inlining of calls to `case-lambda' procedures
which includes calls to procedures with optional (but no keyword)
 arguments
2011-04-19 21:28:14 -06:00
Stephen Chang
718b9709bc fix struct constructor application in lazy racket 2011-04-19 01:21:19 -04:00
Matthew Flatt
e0d26d88b6 support exact nonnegative integers as sequences 2011-04-18 14:55:02 -06:00
Ryan Culpepper
fdede6f063 syntax/parse: added docs for litset #:at kw, relaxed restriction on arg 2011-04-15 14:47:29 -06:00
Matthew Flatt
5386206667 fix 'solid vs. 'opaque for mono on mono Closes PR 11839 2011-04-14 15:38:38 -06:00
Matthew Flatt
e734cd6127 fix `vector-map' error message
Closes PR 11828
2011-04-14 11:36:08 -06:00
Jay McCarthy
91d98aa0fa Fixing drdr discovered problem 2011-04-13 07:31:29 -06:00
Jay McCarthy
9c19571ecd Responding to Norman's request 2011-04-12 13:59:27 -06:00
Matthew Flatt
00ca86ffc6 `xref-binding->definition-tag': fix two-argument-list mode
Closes PR 11847
2011-04-12 15:55:22 -04:00
Ryan Culpepper
c0bd4e8dbc removed unused code from unstable/hash 2011-04-12 09:35:26 -06:00
Ryan Culpepper
033e060bf3 removed unstable/sexp-diff 2011-04-12 09:35:26 -06:00
Ryan Culpepper
459cce23be moved contents of unstable/set to racket/set 2011-04-12 09:35:26 -06:00
Ryan Culpepper
ccc70fca73 removed unused modules and code from unstable 2011-04-12 09:35:26 -06:00
Matthew Flatt
717a61840f racket/trace: fix for expr-style printing (i.e., default `print' mode) 2011-04-11 10:01:25 -06:00
Matthew Flatt
857003378a futures: more bug fixes, make `touch' safe
- bug fixes are related to allocation and runstack space
 - a `touch' within a future can complete before the `touch'ing
   future is itself `touch'ed
 - also make `length' safe (and JIT-inlined)
2011-04-09 17:12:24 -06:00
Stephen Chang
d8517af898 fix stepper rendering of non constructor-style lists
in stepper/private/reconstruct.rkt
- in recon-value, list case, add quasiquote rendering when constructor-style
  printing = #f
2011-04-08 20:41:36 -04:00
Stephen Chang
4ef7e1fae3 improve lazy stepper recon of unannotated fn apps
remove stepper/private/lazy-highlighting.rkt

in stepper/private/macro-unwind.rkt:
- in fall-through, add lazy-proc to lazy #%app special case

in stepper/private/model.rkt
- in send-step, dont use highlight-table, just match top called fn in mark-list
  instead

in tests/stepper/
- add lazy stepper tests for filter and fold
2011-04-08 20:41:35 -04:00
Ryan Culpepper
e0db3ed2e3 fixed tests for moved unstable libs 2011-04-08 10:30:32 -06:00
Matthew Flatt
2dcd76f609 fix arity reporting for chaperoned procedures and some primitives
such as `for-each'
2011-04-08 07:54:41 -06:00
Robby Findler
bb792c977d the tabber incorrectly counted tab chars as spaces when doing indentation;
this meant that if some line were supposed to be indented in the third
  column and you had two tabs and a space on that line, the indenter
  would leave it alone. Now, if it sees tabs in the line anywhere, it just
  decides that the line is not properly indented and re-indents it
  (always using spaces)

Also: started a tabber test suite
2011-04-08 07:48:17 -05:00
Stephen Chang
5238c338b6 fix stepper tests broken by lazy stepper 2011-04-07 15:11:40 -04:00
Ryan Culpepper
3e5a54c9e4 unstable/syntax: removed unused code and exports 2011-04-07 09:47:20 -06:00
Ryan Culpepper
73ab167522 created racket/syntax from parts of unstable/syntax 2011-04-07 09:47:20 -06:00
Stephen Chang
c8dd95b3cf fix user-position stepper-property bug in lazy cond stepper unwinding
in stepper/private/macro-unwind.rkt
 - in fall-through, add special #%app case for force

 in stepper/private/reconstruct.rkt
 - in recon-inner, in called app case, combine force case with other lazy fns

 in tests/stepper/
 - add test for lazy cond unwinding problem
2011-04-06 22:29:48 -04:00
Matthew Flatt
3bf0f800a7 futures: make `future' work in a future, overhaul logging, fix bugs 2011-04-06 17:40:44 -06:00
Matthew Flatt
91cdfe9a7a fix `in-vector' range checking 2011-04-06 17:40:44 -06:00
Matthew Flatt
584f74a22b remove printf 2011-04-06 17:40:43 -06:00
Stephen Chang
5d47c0b49b in stepper/private/reconstruct.rkt
- in recon-inner, in called app case
  - add other force fns to force case (!!, !list, !!list)
  - add other list fns
    (list?, length, list-ref, etc)

in stepper/private/lazy-highlighting.rkt
- add various list fns (list?, length, list-ref, etc)

in stepper/private/macro-unwind.rkt
- in unwind-cond, disable check of user-source and user-position

in tests/stepper/
- add test for various list fns
2011-04-06 18:44:36 -04:00
Stephen Chang
e41ba9c77b in lazy/lazy.rkt
- modify cond for stepper
- add support for multiple values in stepper
  - add inspector to multiple-values struct
  - hide split-values call in ~define-values

in tests/stepper/
- add tests for cond

in stepper/private/annotate.rkt
- in annotate/top-level, allow arbitrary top-level terms
  (no error in else case), otherwise exprs like let throws error

in stepper/private/
   reconstruct.rkt
   lazy-highlighting.rkt
- add support for eq? eqv? equal? lazy fns
2011-04-06 18:44:35 -04:00
Stephen Chang
c0f8f1cdb2 lazy stepper working with infinite lists
in stepper/private/marks.rkt
- in mark-binding-value, add exception handler to catch undefined vars, so
  display-mark in break works with recursive fns

in /tests/stepper/automatic-tests.rkt
                  through-tests.rkt
- add inf list example from icfp paper

in stepper/private/model.rkt
- refactor send-step to use cond instead of unless
- in send-step, when highlight-stack = null and last-rhs != null (and lhs !=
  last-rhs), send a step with lhs = last-rhs (previously skipped whenever
  highlight-stack = null)
  - basic filter example wasnt showing result without this
  - in icfp inf list example, this shows some intermediate forcing states
  - all other existing tests passed
2011-04-06 18:42:57 -04:00
Stephen Chang
348a20c0e5 in stepper/private/reconstruct.rkt
- in recon-inner, called app case, add first fn to list of special lazy fns
- in recon-value, add handling of running promises not found by
  recon-inner search
  - add optional so-far param to recon-value
- add unknown-promises-table and add case in recon-value to handle

in stepper/private/lazy-highlighting.rkt
- add (first,0) pair

in stepper/private/model.rkt
- modify lazy fn "skipping" (from lazy-highlighting.rkt) to use the skips
  only when last-rhs-exp = null; o.w. skipping is handled solely by
  examining last-rhs-exp

in tests/stepper/
- add take example from icfp paper
- add tests for unknown promises
2011-04-06 18:42:56 -04:00
Stephen Chang
d04d3fadc3 - add if tests for lazy stepper
in stepper/private/reconstruct.rkt
- in recon-inner, in called app case, add "take" to lazy fn case and fix to
  handle more than unary fns
2011-04-06 18:42:55 -04:00
Stephen Chang
49fd1fb0e0 in stepper/private/reconstruct.rkt
- in recon-value, add cases to handle list and cons
- in recon-inner, in app called case, add case to handle lazy list fns
  that contain unannotated !'s (ie cadr, cdddr, second, third, etc)

in stepper/private/model.rkt
- add highlight-stack
- in send-step, add various skip conditions when lhs = ellipses

add file stepper/private/lazy-highlighting.rkt

in tests/stepper/through-tests.rkt
   tests/stepper/automatic-tests.rkt
- add tests for list and cons fns
2011-04-06 18:42:54 -04:00
Stephen Chang
c41123ce6c existing lazy stepper tests passing
in tests/stepper/
test-engine.rkt
- add racket/private/promise to test-namespace using namespace-attach-module

automatic-tests.rkt
- add lazy tests

through-tests.rkt
- fix existing lazy tests lazy1, lazy2, lazy3

language-level-model.rkt
- fix lazy ll-model

in stepper/private/model-settings.rkt
- edit settings for lazy racket
2011-04-06 18:42:53 -04:00
Jay McCarthy
2ebcb2afd1 Fix drdr discovered problem 2011-04-06 16:00:54 -06:00
Jay McCarthy
af57e0419c Fixes PR11793.
It was very hard to figure out why &#0; is invalid. Both the XML 1.0 and 1.1 specs say that a CharRef can be '&#' [0-9]+ ';' (sec 4.1), but there is a note on the side that it must also be a valid Char. The Char definition (sec 2.2) then lays out which characters are valid. (The 1.0 and 1.1 specs disagree though.) I've gone with the 1.1 definition.

I did not update the rest of the reader to disallow those characters in pcdata segments. If this hurts you or you morally disagree, submit another PR, please.
2011-04-06 11:14:25 -06:00
Stevie Strickland
6494bf863e Changing absent so that fields may be specified as well as methods. 2011-04-05 15:03:46 -04:00
Matthew Flatt
d359daa5f5 fix problem with chaperones and keywrd procedures
Closes PR 11833
2011-04-04 21:15:44 -06:00
Stevie Strickland
eafacc78a0 Adding `absent' to class contracts.
The `absent' clause lists public methods which must _not_ exist in the
contracted class.
2011-04-04 19:38:27 -04:00
Matthew Flatt
df2a875ff4 Scribble: simplify content that is conditioned on the render mode
including a new `scriblib/render-cond' library
2011-04-04 10:45:02 -06:00
Vincent St-Amour
9c3bee03e7 Fix bounded-fixnum opts to only fire with the right number of arguments. 2011-04-01 14:56:17 -04:00
Robby Findler
b926b17d7e fix the obvious bug wrt to procedures returned from make-keyword-procedure, but something is still wrong
related to PR 11833
2011-04-01 09:12:05 -05:00
Ryan Culpepper
896cb86dc4 syntax/parse: added phase options to define-literal-set 2011-04-01 00:57:04 -06:00
Ryan Culpepper
2e2bc02303 syntax/parse: fixed obsolete test cases 2011-04-01 00:54:29 -06:00
Robby Findler
d4e6f99b74 fix the algorithm for determining if a > that is typed in an
XML box ends an opening tag or not
  closes PR 11792
2011-03-31 17:26:03 -05:00
Kevin Tew
26d7768d3d Rename place-channel-recv place-channel-receive 2011-03-31 13:36:40 -06:00
Matthew Flatt
d00c8a6c71 Scribble: fixes for text output, especially inset nested flows 2011-03-30 19:53:32 -06:00
Robby Findler
5b879d0680 add missing require, fix opt/c test suite 2011-03-29 22:43:18 -05:00
Jay McCarthy
113e0aa184 Fix issue found by Eric Tanter 2011-03-29 09:24:36 -06:00
Matthew Flatt
0fda70b7ca fix region% problems
- fail gracefully with pre 1.4 Cairo
 - clip all drawing for an empty clipping region
 - disallow `is-empty?' on a region without a DC
   (since the test depends on the DC dimensions)
2011-03-28 15:15:57 -06:00
Matthew Flatt
6e1f35a319 fix WXME stream write-bytes' and write' method results 2011-03-27 16:30:44 -06:00
Robby Findler
4021f55c61 fixed up broken tests 2011-03-27 16:13:44 -05:00
Matthew Flatt
84d8bb3726 racket/sequence repairs
including addition of `sequence-generate*'
2011-03-27 10:02:11 -06:00
Robby Findler
f3b0a7454a improved the error messages for #:pre and #:post violations in ->i by including the bindings for the variables 2011-03-26 08:12:30 -05:00
Kevin Tew
00696cbfac variable-reference->module-source test 2011-03-25 15:04:02 -06:00
Robby Findler
288caacdfd added get-extend-start-position and get-extend-end-position
added the extend-position method
adjusted the wxme.rkt test suite so that it only prints when tests fail
2011-03-25 15:10:49 -05:00
Robby Findler
614ec41ab7 extended struct-copy so that you copy adjust fields from super structs 2011-03-25 08:47:27 -06:00
Matthew Flatt
60c4acb094 Scribble: clean up text-mode output
- line-flow paragraphs to fit in 72 columns
 - better indentation for itemizations
 - format tables with paragraphs and nested tables
2011-03-20 17:19:03 -06:00
Matthew Flatt
b2e338cc43 add missing autobib test 2011-03-20 15:38:51 -06:00
Matthew Flatt
ed96b89c45 JIT-inline `list?' 2011-03-20 09:51:32 -06:00
Matthew Flatt
e652546bf5 add streams to `racket'
- rename old `racket/stream' to `racket/sequence', and adjust
   to avoid stateful iterations
 - add a new `racket/stream' library with a `strean-cons' that is based
   on SRFI 41
 - adjust `for' and some sequence constructors like `in-range' to
   work more directly with streams
2011-03-18 19:05:23 -06:00
Kevin Tew
ae8b326522 [Places] added place-kill 2011-03-18 15:06:11 -06:00
Vincent St-Amour
3ebe9e78f9 Optimize add1 and sub1 on floats and fixnums. 2011-03-18 13:25:05 -04:00
Vincent St-Amour
1f0386b46c Improve TR's fixnum optimizations, using the new sub-fixnum types. 2011-03-18 10:25:22 -04:00
Vincent St-Amour
ee29d371c9 Updated TR's base type environment to use the new numeric types.
This ended up being an almost complete rewrite of the base environment.
Note: While the commit is dated Jan 27, the work was finished on Mar 2.
2011-03-18 10:25:21 -04:00
Vincent St-Amour
88fac43d55 Add an Exact-Number type. 2011-03-18 10:25:20 -04:00
Vincent St-Amour
80a9027f1e Take the meet of constraints earlier in the inference process.
This avoids constraint explosions in some cases, notably when working
with polydots and plain variable arity functions at the same time.

However, this also weakens inference a bit (breaks it for
unholy-terror and related tests), but not in a way that affects any
practical use cases that I know of.
2011-03-18 10:25:19 -04:00
Vincent St-Amour
f8528ac892 Change type of make-sequence to reflect changes to its implementation. 2011-03-17 18:43:57 -04:00
Vincent St-Amour
35161a0ba6 Fix expected optimization logs to reflect changes to for. 2011-03-17 13:10:19 -04:00
Vincent St-Amour
498ee4bea1 Fix TR's GUI test harness. 2011-03-17 13:10:19 -04:00
Vincent St-Amour
e9789c6697 Fix the 2-argument case of atan to conform to the documentation and
fix the documentation.
2011-03-17 13:10:19 -04:00
Matthew Flatt
ad8e959a98 tweak performance of `for' with non-inlined sequences 2011-03-16 17:02:53 -06:00
Matthew Flatt
c51daeb392 clean up sequence & generator tests 2011-03-16 16:21:26 -06:00
Matthew Flatt
4b39efdee4 fix `syntax-local-bind-syntaxes' argument checking
Closes PR 11808
2011-03-16 06:36:48 -06:00
Matthew Flatt
0efcf22ed4 racket/generator: clean-ups, including planned generalization
- syntax is now (generator formals body ...+)
 - add `generator?'
 - remove common run-time code from the `generator' macro expansion
 - doc fixes
 - start test suite
2011-03-15 20:14:01 -06:00
Matthew Flatt
b9c4bbae67 futures: limit parallelism via custodians
Closes PR 11682
2011-03-15 14:43:18 -06:00
Matthew Flatt
6a79ebdc97 adjust racket/gui test to cover no-border tab-panel% 2011-03-15 12:44:11 -06:00
Matthew Flatt
a2d968a5d2 fix `init-manual-scrollbars'
Closes PR 11781
2011-03-15 12:41:59 -06:00
Matthew Flatt
343b6fb008 Scribble: fix caching of hyperlinked identifiers 2011-03-15 11:09:10 -06:00
Eli Barzilay
09698c800c Improve the error message from scribble text rendering tests. 2011-03-15 11:45:40 -04:00
Matthew Flatt
449a634b2f add missing test for commit ae8705611b 2011-03-11 13:19:52 -06:00
Matthew Flatt
5afacbbb1c fix `pretty-print' confusion about quasiquote
Closes PR 11796
2011-03-11 08:02:30 -06:00
Matthew Flatt
a5a7076fe0 `file-or-directory-permissions': expose more info, add write mode
and add `user-read-bit', etc., to `racket/file'
2011-03-11 02:50:06 -06:00
Matthew Flatt
2b3827504b make test suite hit tab panels more 2011-03-11 02:50:05 -06:00
John Clements
ca88fdd7e5 oops rename in tests subdir too 2011-03-08 17:37:38 -08:00
Jay McCarthy
6b907d6b61 Fixing problem from Alok Thapa 2011-03-07 10:54:06 -07:00
Eli Barzilay
adf18c7dc0 Use runtime paths to make this work from a different directory 2011-03-03 12:25:19 -05:00
Eli Barzilay
22afec432c Use "127.0.0.1" instead of "localhost" which can be more fragile.
(It's possible to have issues with "localhost", for example when there's
something in a $LOCALDOMAIN environment variable, which made this test
fail on certain machines.)
2011-03-03 11:10:12 -05:00
Matthew Flatt
8ea32d675c add tests from Curtis Dutton 2011-03-03 07:24:15 -07:00
Matthew Flatt
fdef90e482 fix get-column-width' method of list-box%'
by changing the name to match the docs, plus some other
  bug fixes triggered by better testing
 Closes PR 11780
2011-02-28 19:12:34 -07:00
Matthew Flatt
733eab5805 fix 0-field prefab immutability flag
Closes PR 11777
2011-02-28 15:24:11 -07:00
Robby Findler
6f48aaeaa7 added a test case for this commit:
http://git.racket-lang.org/plt/commit/2482816d3d
2011-02-27 19:05:06 -06:00
Robby Findler
07a2ace943 added the #:pre/name and #:post/name keywords to ->i 2011-02-25 13:42:09 -06:00
Robby Findler
4b68377af1 Revert "started adding comments to the #:pre and #:post parts of ->i"
This reverts commit a27b7d5c61.

ack, sorry.
2011-02-25 09:44:34 -06:00
Robby Findler
a27b7d5c61 started adding comments to the #:pre and #:post parts of ->i 2011-02-25 09:42:23 -06:00
Robby Findler
2187773474 adjusted to change in the module language dialog 2011-02-25 09:42:16 -06:00
Matthew Flatt
93e1467b8b racket/gui: scrollbar support panels 2011-02-24 13:23:51 -07:00
Matthew Flatt
137d96c089 multi-column support in list-box% 2011-02-21 13:58:57 -07:00
Matthew Flatt
a01b7434b1 remove file that was added accidentally 2011-02-21 08:14:14 -07:00
Matthew Flatt
33d01a681e racket/system: fix problems with checking and empty-string arguments 2011-02-20 11:25:25 -07:00
Matthew Flatt
c8acebce8b fix race in subprocess test 2011-02-19 08:51:10 -07:00
Matthew Flatt
b4056373be generalizations to `subprocess' & company
- allow byte strings in more places
  - allow stderr spec to be 'stdout to redirect stderr to stdout
 Closes PR 11711
2011-02-19 08:30:34 -07:00
Robby Findler
783945f96b adjust the test coverage test suite to the changes in test coverage 2011-02-18 13:20:37 -06:00
Matthew Flatt
6041833ac5 fsemaphore cleanup
- abstract over JIT inlining of fsemaphore operations
 - fix problems with non-parallel fsemaphores
 - adjust tests so they don't assume too much concurrency
 - clarify fsemaphore vs. semaphore in the docs
2011-02-18 09:55:01 -07:00
James Swaine
ca5c061a71 Fix fsemaphore-try-wait? so the sema's count is decremented. Make fsemaphore-wait and other futures-related functions cooperate with the GC better. 2011-02-16 21:14:14 -06:00
Eli Barzilay
0801525931 Merge in the docs test into the rest of the scribble tests.
Also fixed it to scan all scrbl files in the docs directory, use
runtime-path, and change the rest to racket to get the quoted printout
right.
2011-02-16 15:26:15 -05:00
James Swaine
c6642de116 Added future semaphores (fsemaphores) 2011-02-15 23:27:03 -06:00
James Swaine
a98553f99b Merge branch 'master' of pltgit:plt 2011-02-15 22:58:08 -06:00
Robby Findler
8e94ce49e4 lift the restriction that the text:ports mixin
cannot do io from the eventspace handler thread
and add a test suite for text:ports
2011-02-15 18:10:02 -06:00
Robby Findler
62c961410c adjust the framework test suite so that queue-sexp-to-mred catches and propogates exceptions 2011-02-15 18:10:00 -06:00
Robby Findler
d5c753be88 adjusted printfs to make them a little narrower 2011-02-15 18:09:59 -06:00
John Clements
c1f76d418f bug fixed 2011-02-15 14:10:57 -08:00
Kevin Tew
156153f692 calling sync on a place-channel now returns the channel message just like standard racket channels 2011-02-15 13:53:01 -07:00
James Swaine
f9c12f9e58 Merge branch 'master' of pltgit:plt 2011-02-14 14:02:47 -06:00
Eli Barzilay
b090dde2fb Add a "BOOM" string to the timeout message, otherwise the failure is
hard to find.
2011-02-14 13:35:04 -05:00
Matthew Flatt
1a5f41fd71 Scribble: fix multi-line print output
Closes PR 11735
2011-02-14 07:32:21 -07:00
Robby Findler
ae67464670 adjust test suite to work on windows and to the new agreement about reproviding 2011-02-12 11:15:01 -06:00
Robby Findler
731a754e2b added tests that check on provide/contract when there are multiple files containing modules
related to PR 11724
  related to PR 11084
2011-02-11 19:49:50 -06:00
Matthew Flatt
0840430b21 clean up `define-syntax-rules'
by removing a redundant expression in an error message, adding
 tests, and documenting the fact that a syntax-error message can
 expose the pattern source to users
2011-02-11 09:59:42 -07:00
James Swaine
22d6ad7d03 Merge branch 'master' of pltgit:plt 2011-02-10 14:38:50 -06:00
Robby Findler
5cef41e08e adjust and/c so that it mentions the particular predicate (flat contract) that failed in the case that all its arguments are flat contracts 2011-02-10 11:32:40 -06:00
James Swaine
19dbee0405 Added semaphores for futures 2011-02-08 17:58:02 -06:00
James Swaine
0a73a9d5a1 Added semaphores for futures 2011-02-08 17:55:12 -06:00
Matthew Flatt
3c4807f032 fix coverage of `file/resource' tests 2011-02-05 08:33:27 -07:00
Matthew Flatt
18eb7c86b5 get-resource' and write-resource': support .ini files 2011-02-05 07:39:29 -07:00
Matthew Flatt
da6d4f3fba futures: fix `future' when given a non-JITted procedure
Merge to 5.1
2011-02-05 06:43:09 -07:00
David Van Horn
760a58b65d Fixes more spelling errors. 2011-02-04 19:44:13 -07:00
Matthew Flatt
337500552c `file/resource': improve compatibility
by generating "failure" results instead of exn:fail:unsupported
2011-02-04 14:25:09 -07:00
Matthew Flatt
b4ce4bbd2c add `file/resource' 2011-02-04 13:39:49 -07:00
David Van Horn
c9519fd113 Fixed various spelling errors. 2011-02-03 17:42:33 -05:00
Sam Tobin-Hochstadt
6099806a72 codeblock:
fix language regexp to accept numbers in #lang
2011-02-03 17:42:33 -05:00
John Clements
e4c4170d31 updated props in test dir 2011-02-03 14:17:18 -08:00
Eli Barzilay
2fe690b29e Try to kill the test thread after a minute, and exit after another minute. 2011-02-03 15:55:57 -05:00
John Clements
d2771cfb53 added big-bang-test.rkt 2011-02-03 10:27:47 -08:00
Robby Findler
0fce29f552 adjust the wxme reader so that it now creates image-snip%s when it finds image-snips in file
it used to create image% objects that were simple containers for the
  data in the file; the change _should_ be backwards compatibile;
  the only know incompatibility is that the get-filename method
  now returns a path instead of bytes (this is to match the
  image-snip% class)

   closes PR 1168

   please merge to the 5.1 release branch
2011-02-02 20:26:52 -06:00
Matthew Flatt
c2c6c79a15 fix `image-snip%' unmarshaling with filename
Merge to 5.1
2011-02-02 19:03:20 -07:00
Kevin Tew
2b045b991e bytes-join 2011-02-02 10:37:57 -07:00
Matthew Flatt
dfa36afa89 change `floating-point-bytes->real' to always produce a flonum 2011-01-31 19:52:50 -07:00
Matthew Flatt
3ef32d915b make inexacts `eqv?' only when precision is the same
plus some other small fixes
2011-01-31 19:16:33 -07:00
Matthew Flatt
1e09a544a6 adjust _float' and _double' FFI types to accept any inexact real
whether single-precision or double-precision
2011-01-31 18:04:05 -07:00
Vincent St-Amour
1b3052748e Add a case-> type-constructor as a synonym for case-lambda. 2011-01-31 16:39:20 -05:00
Vincent St-Amour
d65438c9ea Remove some legacy bindings. 2011-01-31 16:39:19 -05:00
Vincent St-Amour
e65b206e6e Add functions to convert back and forth between floating-point representations. 2011-01-31 16:39:17 -05:00
Vincent St-Amour
03ec1ec501 Add a single-flonum? predicate to test for single-precision floats. 2011-01-31 16:39:17 -05:00
Vincent St-Amour
c997ae139b Single-precision floats now print differently from their double-precision
counterparts.
2011-01-31 16:39:16 -05:00
Vincent St-Amour
d220e0a10b Add read syntax for single-precision float specials. 2011-01-31 16:39:16 -05:00
Vincent St-Amour
768bb63361 Fix optimizer to work with new types. 2011-01-31 16:39:14 -05:00
Vincent St-Amour
a0a54b231d Fix TR tests. 2011-01-31 16:39:14 -05:00
Vincent St-Amour
e56663c943 Add a predicate field to base types, which makes checking for
subtyping of value types easier.

However, this means that base types can't be marshaled as before,
since these predicates can't be marshaled. Instead, we now marshal
base types as identifiers that refer to their base type object.
2011-01-31 16:39:13 -05:00
Vincent St-Amour
d4c93cc12e TR's numeric tower is now built from unions of non-overlapping base types.
A lot of the work that was done by special-casing number types can now be
done by TR's handling of unions. This makes it easier to add more numeric
types to the tower and should make writing down types for numeric
primitives much less error-prone.

In addition, this commit adds several numeric types that will help get
tighter bounds on integer arithmetic, such as Index types. They will have
to be integrated to the base environment before they can be useful.
2011-01-31 16:39:13 -05:00
Matthew Flatt
dd5f0dfc80 fix `read-language' exn construction in an EOF case
Closes PR 11683
 Merge to 5.1
2011-01-31 06:49:13 -07:00
Eli Barzilay
6b5e09073a Reorganize, improve, and extend lazy tests. 2011-01-30 13:52:04 -05:00
Stephen Chang
08d99f4858 add test for lazy take bug fix -- invariant being incorrectly tested on unforced arg 2011-01-30 12:12:55 -05:00
Matthew Flatt
bc5ab1e031 fix problems with `read-language' error reporting 2011-01-30 07:47:46 -06:00
Stephen Chang
9924ac8060 add tests for lazy take 2011-01-27 17:04:58 -05:00
Vincent St-Amour
36ae5a9d50 Fix nightly running of TR tests. 2011-01-27 16:49:45 -05:00
Jay McCarthy
0714c7222c Fixing PR11661 2011-01-27 13:38:16 -07:00
Robby Findler
419ca0a36d adjust the test-engine test suite to use the new preferences location 2011-01-27 11:00:49 -06:00
Matthew Flatt
3448767f97 fix SRFI-14 test 2011-01-27 08:04:39 -07:00
Stephen Chang
f60957282f fix (take 0 nonemptylist) test in tests/lazy/langimpl.rkt 2011-01-26 18:14:34 -05:00
Stephen Chang
1ab22f7c2b add tests for push#22080 2011-01-26 17:26:44 -05:00
Vincent St-Amour
2bd0145603 Generalize hash table literals and subtypes of symbol.
Closes PR 11670.
2011-01-26 14:23:19 -05:00
Robby Findler
85c955fad6 tweak to move interactions fetch to the eventspace handler thread 2011-01-25 20:58:39 -06:00
Matthew Flatt
60335d9b23 fix `vector-copy' range checking for starting position 2011-01-25 15:46:52 -07:00
Stevie Strickland
a04b8d9899 Change instanceof/c to allow more contracts.
Now instanceof/c no longer checks explicitly for a class/c contract, so
or/c or and/c of class/c contracts succeed.
2011-01-25 14:07:30 -05:00
Robby Findler
45a635339e refactored to make testing check syntax renaming possible
made sure to remove duplicates from the list before doing renaming
  closes PR 11659
2011-01-21 22:27:18 -06:00
Matthew Flatt
b112fd76df add reparent' to subwindow<%>' 2011-01-21 20:21:21 -07:00
Jay McCarthy
aadb1b60bb Repenting of misunderstanding docs 2011-01-20 20:53:11 -07:00
Robby Findler
8c513f2b32 drracket tests: dont' insist on a stacktrace for break exceptions 2011-01-20 19:05:43 -06:00
Matthew Flatt
0c193a599a fix uncaught-exception-handler handling of non-escaping escape handler
and change the emergency error display handler to log and error
 Closes PR 11630
2011-01-20 14:01:33 -07:00
Kevin Tew
bc580ac125 call-with-file-lock/timeout 2011-01-20 13:33:02 -07:00
Jay McCarthy
87865cb1bd Fixing PR11649 2011-01-20 12:13:13 -07:00
John Clements
d675c7b12a updated PLAI (and test cases) to use racket language rather than scheme 2011-01-20 10:21:22 -08:00
Matthew Flatt
d5fdee7e06 add argument to `regexp-try-match' to match docs
Closes PR 6579 --- which was actually about the
 now next-to-last argument, but close enough
2011-01-17 15:18:05 -07:00
Robby Findler
70e3074baf found another place in the framework test suite where operations weren't happening on the eventspace handler thread 2011-01-17 15:35:35 -06:00
Robby Findler
ff800c997e make the example-test private file's work be behind a thunk (so more drdr friendly) 2011-01-17 15:04:00 -06:00
Matthew Flatt
21eee45a48 fix `read-language' when input has only comments 2011-01-16 19:01:45 -07:00
Matthew Flatt
113e49aa5b extend date->seconds' and find-seconds' to work with UTC
Closes PR 6137
2011-01-16 17:53:30 -07:00
Robby Findler
6c974f6c5f add missing require 2011-01-15 15:14:57 -06:00
Matthew Flatt
c2afc03b3b fix interaction of `continuation-mark-set-first' and prompts
including a documentation fix
2011-01-15 08:05:55 -07:00
Robby Findler
90b8400d50 make up a new temp dir instead of using C:\tmp 2011-01-15 06:44:42 -06:00
Mike Sperber
d2aa1c1138 Make test-engine tests work with new gracket. 2011-01-15 12:25:39 +01:00
Robby Findler
255cb84b87 add an example tool (that actually does something) to the docs and make a test suite that sets that tool up and runs it 2011-01-13 20:11:55 -06:00
Matthew Flatt
2097e944b7 fix `regexp-replace*' with procedure and #f matches 2011-01-13 11:01:46 -07:00
Robby Findler
b8459737f0 disable the trace of all of the messages in the framework tests 2011-01-12 17:32:26 -06:00
Carl Eastlund
803ac4a412 Added a sample package to test Planet scribblings. No automated tests yet.
Currently one just has to build the package and "eyeball" its documentation.
2011-01-11 18:00:40 -05:00
Matthew Flatt
6afffb329c add `svg-dc%' 2011-01-10 16:41:16 -07:00
Robby Findler
0411cddba5 added set/c and made sets print as set, seteq, or seteqv
closes PR 11454
2011-01-08 13:49:01 -06:00
Stevie Strickland
9ffb204682 Rename instanceof' to instanceof/c'. 2011-01-08 11:24:25 -05:00
Jay McCarthy
f2a9aebba5 Fixing contract formatting change 2011-01-07 19:53:00 -07:00
Stevie Strickland
92775c5e4e Add instanceof.
The instanceof contract combinator takes a class contract.  The resulting
contract protects objects using the external field and method contracts
in the class contract.
2011-01-07 18:22:24 -05:00
Robby Findler
bf031be73e what happened here? 2011-01-07 09:23:51 -06:00
Robby Findler
a32adbe7db make the framework test suite only modify gui objects on the eventspace handler thread 2011-01-07 06:39:27 -06:00
Robby Findler
31a629ff9c make provide/contract work properly when it is the only thing in a module body
closes PR 11596
2011-01-07 05:19:16 -06:00
Matthew Flatt
655f6045a2 fix shared' for #:auto' fields and constructors without `make-'
Closes PR 11588
 Closes PR 11591
2011-01-05 13:52:11 -07:00
Vincent St-Amour
b32287fa2d Fixed a bug with complex numbers made from floats of differing precision.
It used to be that constructing complex numbers from a float and a
double sometimes caused incorrect coercions.
2011-01-05 14:42:31 -05:00
Vincent St-Amour
cb723092e2 Fix portable fixnum size. 2011-01-05 14:42:31 -05:00
Robby Findler
51ad306af2 changed real-in to be an alias for between/c 2011-01-04 15:40:32 -06:00
Matthew Flatt
553723627c gradients: refine checking and docs to fit various conventions 2011-01-04 12:44:36 -07:00
Matthew Flatt
cd676fe81c another context-cache repair 2011-01-03 18:04:11 -07:00
Robby Findler
d1e0e7e254 fixed a few places in the repl-test where it was accessing gui stuff on a non-GUI thread 2011-01-03 17:41:08 -06:00
Robby Findler
fbe6e06957 give up on predicting the stack trace contents when yield is used 2011-01-03 07:15:03 -06:00
Robby Findler
6fb6fca73b make the test suite less picky about the contents of the stack (but not if it has content or not) 2011-01-02 19:53:39 -06:00
Matthew Flatt
241bb79cb0 allow a button% to have both a string and a bitmap for its label 2011-01-01 13:54:45 -07:00
Matthew Flatt
55693e090f add port-try-file-lock?' and port-file-unlock' 2010-12-31 14:40:27 -07:00
Robby Findler
699058d3a4 do a little bit better job keeping the manipulation of the gui state on the eventspace handler thread (in the syncheck test) 2010-12-31 15:29:23 -06:00
Eli Barzilay
3fb871586f Removed some exe bits that look redundant. 2010-12-31 15:59:39 -05:00
Robby Findler
e75d6b3fae replace one inherently racecondition-prone test with two others that approximate it 2010-12-31 10:50:27 -06:00
Robby Findler
6f9bcf0001 Rackety 2010-12-31 09:58:54 -06:00
Robby Findler
3dc5bbd0eb moved interactive panel test into its own file 2010-12-31 09:58:53 -06:00
Robby Findler
900d74714e fixed up panel:dragable so that it actually does the right thing now
adjusted the framework test suite so that it runs under windows
closes PR 10880
2010-12-31 09:58:51 -06:00
Matthew Flatt
a974dad8bf add alpha value to `color%' 2010-12-30 07:05:25 -07:00
Robby Findler
fb25dc9a42 adjusted drracket test suites so that it is (more) careful to keep all manipulation of GUI objects (text% objects seem to have been the important one) on the drracket eventspace main thread in an effort to make the test suites more stable. 2010-12-29 20:31:40 -06:00
Matthew Flatt
d3fd1ba013 add `set-padding' to text% 2010-12-29 13:42:58 -07:00
Sam Tobin-Hochstadt
2431f8f706 Fix TR tests for new contract error messages. 2010-12-29 13:46:57 -05:00
Matthew Flatt
3b032893c1 don't JIT-inline `values' in a single-value position 2010-12-28 17:47:03 -07:00
Matthew Flatt
5339be7594 make language test work with cgc 2010-12-28 10:52:17 -07:00
Matthew Flatt
0b1f1a4f4e add missing test case for premultiply-alpha fix 2010-12-27 19:34:59 -07:00
Matthew Flatt
705b11f2b8 a prompt-test fix like the previous one, but for post thunks 2010-12-27 15:24:33 -07:00
Robby Findler
6fe8643194 adjust teaching languages so that print works properly 2010-12-27 09:16:09 -06:00
Matthew Flatt
0d3fbb11fa supress a prompt test that doesn't apply to composable continuations 2010-12-26 16:21:28 -06:00
Matthew Flatt
e77917db8c fix another continuation bug discovered by Casey's random testing 2010-12-25 17:12:33 -06:00
Robby Findler
dd531dde9e check syntax does not call eval-compile-time-part-of-top-level when
checking programs in the module language.
closes PR 10908
2010-12-25 15:38:08 -06:00
Matthew Flatt
e7b52bf10f fix ffi handling of non-GCable pointers with offsets
Closes PR 11567
2010-12-25 09:34:07 -06:00
Robby Findler
bb9bd1b07a new attempt at contract violation error messages 2010-12-22 10:39:59 -06:00
Robby Findler
53509bef5f made module lang tests Windows friendly & Rackety 2010-12-20 08:43:28 -06:00
Sam Tobin-Hochstadt
491eeaa759 Move mred/private/wxme/style to racket/snip/private/style.
`racket/snip' now exports the style classes and the add,mult-color interfaces.
2010-12-19 22:56:15 -05:00
Mike Sperber
79600e15a6 Merge remote branch 'origin' 2010-12-19 11:21:41 +01:00
Mike Sperber
fa854f62fc Add vector signatures, and `vector-of' to the HtDP signature syntax. 2010-12-19 11:20:51 +01:00
Sam Tobin-Hochstadt
e9e45fdc2c Fix test require. 2010-12-18 00:10:25 -05:00
Matthew Flatt
4195cf3297 more fixes for weird draw-bitmap mask and mode combinations 2010-12-17 05:51:23 -07:00
Matthew Flatt
98f6415c59 another fix to drawing a color bitmap to a monochrome target 2010-12-17 05:29:50 -07:00
Matthew Flatt
8a10c3d3db fix use of color bitmap as mask when drawing after previous use 2010-12-16 21:02:11 -07:00
Matthew Flatt
f8ec47cdeb test for draw-bitmap repairs 2010-12-16 19:36:13 -07:00
Noel Welsh
8040100eff Merge branch 'master' of pltgit:plt into in-vector 2010-12-13 13:43:05 +00:00
Noel Welsh
cfa7b727f4 Fix some errors with in-vector and derived forms:
- Range checking was inconsistent between the sequence and macro forms
- The macro form could crash due to unsafe vector refs

Fixes involved refactoring the range checks so they are shared between both versions, and changing the contract slightly so start and stop are checked before the sequence runs. This allows unsafe vector refs and earlier error notifications at the cost making some valid programs (e.g. those using some condition to stop a comprehension hitting an invalid index) now be invalid. Only crazy people would rely on the old behaviour, so it isn't a problem in practice.
2010-12-13 13:38:35 +00:00
Matthew Flatt
965e8f96d1 fix get-char-height' and get-char-width' in dc<%>
Closes PR 11526
2010-12-10 20:37:51 -07:00
Matthew Flatt
2ae9f14f9e fix exn raised in refab-struct read errors
Closes PR 11530
2010-12-10 18:33:44 -07:00
Matthew Flatt
2b4f1a6908 extend `sync/timeout' to allow a tail-position fail thunk for polling 2010-12-10 18:06:21 -07:00
Carl Eastlund
5b18305e11 New test case for formatting bug in TR error messages. 2010-12-10 17:26:17 -05:00
Vincent St-Amour
09ffb70492 Update TR tests to reflect new contract error messages. 2010-12-10 16:59:13 -05:00
Vincent St-Amour
b9d67eea2f Allow running individual TR tests. 2010-12-10 16:59:12 -05:00
Vincent St-Amour
407d9b5f07 Error when running TR's test harness with no tests. 2010-12-10 13:44:47 -05:00
Stevie Strickland
7ab53d8ddb Fix unit contract tests due to new contract error format. 2010-12-10 13:06:56 -05:00
Robby Findler
94ebb1f317 update the mzlib contract test suite to the new error messages 2010-12-10 06:57:27 -06:00
Eli Barzilay
de4daa8d81 Add a hack to get the environment variables from the visual studio batch
file.

Also change the version number in the foreign tests to make them work.

Also fix getting the `test_gui' configuration.
2010-12-10 05:15:14 -05:00
Robby Findler
18dacad6c8 a first attempt at a rewording of the blame error messages to admit the possibility that the contract was wrong and also to claim that fixing the blamed module or the contract is all that is required
note that two test cases are failing, but only because they depend on the wording of the error messages; once that is set, I'll fix them.
2010-12-09 15:50:15 -06:00
Vincent St-Amour
365d272666 Test for errors in rhs. 2010-12-08 20:32:20 -05:00
Vincent St-Amour
81ef5f9418 Typecheck body of letrec using original types instead of potentially undefined type. 2010-12-08 20:32:20 -05:00
Vincent St-Amour
b045153177 letrec: consider outside bindings safe. 2010-12-08 20:32:19 -05:00
John Clements
368f345901 more stepper cleanup 2010-12-08 16:37:15 -08:00
John Clements
ff973b628b stepper refactoring and cleanup 2010-12-08 16:37:15 -08:00
Sam Tobin-Hochstadt
87eab889d6 Allow arbitrary filter specification in function types.
Allow (A -> B -> C) for curried function types.
2010-12-08 18:22:29 -05:00
Sam Tobin-Hochstadt
cb6d78698b Count pairs as having size 1, not 0, in minimizing edit distance. 2010-12-08 18:22:29 -05:00
Sam Tobin-Hochstadt
73dbf42e0e Better handling of `hash-*' functions, and hashes as sequences. 2010-12-08 18:22:29 -05:00
Vincent St-Amour
dc2df4882b Take into account potentially undefined values in letrec.
Closes PR11511.
2010-12-08 18:17:06 -05:00
Jay McCarthy
7ac2b8e316 Fixing tests 2010-12-08 14:08:54 -07:00
Jay McCarthy
5285dc6a16 Fixing tests 2010-12-08 14:08:54 -07:00
John Clements
5456e83ce4 massively faster due to reuse of namespace 2010-12-07 20:44:35 -08:00
John Clements
0d2a4b98db moving to another machine 2010-12-07 20:44:34 -08:00
John Clements
6f84a1c143 checkpointing progress toward applicable structs instead of hash table 2010-12-07 20:44:34 -08:00
Stevie Strickland
37349ca053 Allow uses of recursive-contract to specify the type of contract to create. 2010-12-07 18:30:20 -05:00
Jay McCarthy
d28dc2ae41 Revert "Adding dynamic/c and coerce/c"
This reverts commit cec308cc363a69d561097e978352488c996385ed.
2010-12-07 14:14:55 -07:00
Jay McCarthy
58494c125b Big bang coercion 2010-12-07 14:14:55 -07:00
Jay McCarthy
d7bd9ddc5f Adding compat0 test cases 2010-12-07 14:14:54 -07:00
Jay McCarthy
78a65f0662 More exhaustive test 2010-12-07 14:14:54 -07:00
Jay McCarthy
b5a39d03e4 Discussing compatibility 2010-12-07 14:14:54 -07:00
Jay McCarthy
d6d9f3ef8c Adding dynamic/c and coerce/c 2010-12-07 14:14:53 -07:00
Jay McCarthy
f5e9e0dad1 Fixing example 2010-12-07 14:14:52 -07:00
Jay McCarthy
4ca1dac51c write-xexpr test cases 2010-12-07 14:14:51 -07:00
Jay McCarthy
ca6c37bccf Adding header 2010-12-07 14:14:50 -07:00
Jay McCarthy
16f8b3a2a6 Adding test case and fixing un-terminated requests 2010-12-07 14:14:50 -07:00
Jay McCarthy
9b066d0f04 Correcting tests and examples 2010-12-07 14:14:49 -07:00
Jay McCarthy
419c184c94 Using response/xexpr 2010-12-07 14:14:49 -07:00
Jay McCarthy
05c9fcd412 First pass at Xexpr removal 2010-12-07 14:14:49 -07:00
Jay McCarthy
dc01f00afc New benchmarks 2010-12-07 14:14:49 -07:00
Stevie Strickland
5b8e5d6380 Extend struct/c to allow impersonator contracts for mutable fields.
Also, flat contracts for immutable fields are only evaluated at contract
wrapping time.
2010-12-07 14:29:07 -05:00
Stevie Strickland
10eb818f95 Conversion of struct/c to chaperones when appropriate. 2010-12-07 04:11:26 -05:00
Stevie Strickland
ebf01cc664 Converting case-> to chaperones and impersonators. 2010-12-06 16:12:49 -05:00
Matthew Flatt
fda0228631 fix broken inexact-reader configuration
Closes PR 11496
2010-12-04 16:22:17 -07:00
Matthew Flatt
116d88577e restore old behavior of _fixint' and _ufixint'
Closes PR 11492
2010-12-03 14:20:38 -07:00
Matthew Flatt
7ec0731cda don't use unsafe-string-ref' in for'
because `unsafe-string-ref' is for ASCII results, only
2010-12-03 11:10:11 -07:00
Noel Welsh
3b234010a0 Merge branch 'master' of pltgit:plt into in-vector 2010-12-03 14:36:48 +00:00
Noel Welsh
899e31e2ce Add tests for extended in-flvector and in-fxvector forms, refactoring common code to for-util.rkt 2010-12-03 14:33:38 +00:00
Noel Welsh
6e2d67e58a Fix typo 2010-12-03 12:18:04 +00:00
Noel Welsh
6761ae8618 Merge branch 'master' of pltgit:plt into in-vector 2010-12-03 10:27:34 +00:00
Stevie Strickland
778f0c9fc4 Actually turn on old object-info hack mentioned in 4e451a1. 2010-12-02 13:02:59 -05:00
Robby Findler
60d986b6df added a not-quite-right test case (drracket's test suites don't run well in gr2 yet) 2010-12-02 10:40:43 -06:00
Robby Findler
9501a9d7f8 adjustments to match gr2 2010-12-02 10:40:43 -06:00
Stevie Strickland
30afcd3bf5 Fix object=?.
Also commented out some tests of reflective operations on contracted objects.
I've added a note that describes how we might be able to fix this, if
we decide it's worth doing.
2010-12-01 15:11:25 -05:00
Stevie Strickland
2bd7760412 Conversion of object/c and object-contract to use impersonators. 2010-12-01 15:11:20 -05:00
Matthew Flatt
082515d6db fix namespace-anchor on non-module namespaces 2010-12-01 06:52:11 -07:00
Jon Rafkind
cf3b9680ba remove 0 arg set-union. add workaround to docs 2010-11-29 00:34:57 -07:00
Jon Rafkind
46244f81fc make set-union with 0 args return an empty set 2010-11-28 23:08:28 -07:00
Robby Findler
eabbb7dff2 improve the leak test a little by looking to see tabs get gc'd and so do the user's namespaces. 2010-11-28 19:26:38 -06:00
Matthew Flatt
0b19c6e798 fix bug in composable continuations
--- as deiscovered by Casey's random tester
2010-11-27 09:52:11 -07:00
Matthew Flatt
abcaa1775c add width' and height' arguments to post-script-dc% and pdf-dc%
and document the change that the PS bounding box is no longer
 inferred from drawing operations
2010-11-26 20:40:43 -07:00
Jay McCarthy
ee2b11630f Adding containers 2010-11-26 19:59:32 -05:00
Jay McCarthy
eee5c6b14a Adding response/port 2010-11-26 19:59:32 -05:00
Jay McCarthy
8320517192 Adding page 2010-11-26 19:59:32 -05:00
Matthew Flatt
2edadd6113 add pdf-dc%; make slideshow/pict depend on racket/draw, not racket/gui 2010-11-26 10:35:05 -07:00
Matthew Flatt
7da127227a gtk & cocoa: frame iconize repairs
In the "windowing.rktl" tests, for Gtk there are still race conditions
 between the program and the window manager. But for the first
 time ever, all platforms can pass the "windowing.rktl" test.
2010-11-26 08:33:59 -07:00
Matthew Flatt
1f61bbdc51 win32: frame size and iconize fixes 2010-11-26 08:10:58 -07:00
Robby Findler
4c9794acc6 drracket frames leak; add a test case 2010-11-26 08:51:37 -06:00
Matthew Flatt
8e8844641c fix `draw-bitmap-section-smooth' method of bitmap-dc<%> 2010-11-25 11:00:32 -07:00
Jay McCarthy
bd7ffb282f This code appears to have been copied from the other 2010-11-25 12:03:10 -05:00
Jay McCarthy
6474b519bb Fixes usage of argb-pixels 2010-11-25 12:01:44 -05:00
Jay McCarthy
e081af2aef This test relied on the old source location losing behavior of Rackunit 2010-11-25 11:38:43 -05:00
Matthew Flatt
347869fc9e fix some racket/gui tests and fix cocoa frame centering 2010-11-25 08:03:33 -07:00
Jay McCarthy
eecbc539c1 Fixing problem with previous "fix" to mutator-begin 2010-11-24 23:33:42 -05:00
Jay McCarthy
c9dcbb9edb Failing test 2010-11-24 23:33:42 -05:00
Jay McCarthy
b686cc84a9 Removing test because we reintroduced gensym 2010-11-24 23:33:42 -05:00
Matthew Flatt
1034c9be4e fix hashing on C pointers and missing tests 2010-11-24 15:44:18 -07:00
Jay McCarthy
e3153e6d21 Adding normalization display 2010-11-23 15:42:39 -07:00
Vincent St-Amour
102419f009 Fixed command-line options for gambit in benchmarks. 2010-11-19 12:10:42 -05:00
Jay McCarthy
24dbffaf3b Fixing problem found at Brown 2010-11-17 04:58:09 -07:00
Jon Rafkind
5f2d18c1f9 add in-queue 2010-11-16 23:09:19 -07:00
Jon Rafkind
27b32464c5 add test for sequence used as an expression 2010-11-16 23:09:19 -07:00
Matthew Flatt
1762a9a872 fix set!' of define-for-syntax'ed varable in `let-syntax' RHS 2010-11-16 20:18:11 -07:00
Jon Rafkind
7b24eaf58e rename queue-count to queue-length 2010-11-16 14:36:49 -07:00
Jon Rafkind
73be67942d add queue->list 2010-11-16 14:36:49 -07:00
Jon Rafkind
58188ad0c6 add queue-count 2010-11-15 22:32:08 -07:00
Matthew Flatt
c3e0a7af13 manual tests for refresh behavior 2010-11-12 20:47:07 -07:00
Matthew Flatt
42a4465fb0 fix bytecode compiler bugs in tracking known-flonum arguments 2010-11-12 15:28:57 -07:00
Eli Barzilay
5c1bd77b9e Add shuffle' to racket/list'. 2010-11-12 17:21:11 -05:00
Noel Welsh
2b799e2714 Merge branch 'master' of pltgit:plt 2010-11-12 10:30:08 +00:00
Robby Findler
5a9c469b0f added forall to go along with exists contracts 2010-11-11 14:39:43 -06:00
Matthew Flatt
27752c4695 plot bug fixes, including new images and a more forgiving image-equality test 2010-11-10 09:18:50 -07:00
Matthew Flatt
8d1827222c improve docs in 'interior allocation mode and improve 'interior-atomic 2010-11-10 09:18:31 -07:00
Matthew Flatt
a0a414465d fix problem with multiple captures of the same continuation
--- a bug introduced when enabling full continuations
     to escape past continuation barriers in v5.0.1
 Closes PR 11409
2010-11-09 16:48:23 -07:00
Matthew Flatt
0a179481a5 fix continuation capture in continuation transferred to a thread
where the prompt is the implicit one at the thread's creation
 Closes PR 11382
2010-11-08 18:06:07 -07:00
Matthew Flatt
90ac279096 add 'can-impersonate option to `make-struct-type-property' 2010-11-08 14:00:59 -07:00
Eli Barzilay
f5f1243b33 Move "fuzz.rkt" test to "tests/racket/stress". 2010-11-08 09:48:00 -05:00
Matthew Flatt
7f67b6569c v5.0.99.2: proxy' -> impersonator' 2010-11-08 06:23:16 -07:00
Matthew Flatt
bc2c95f564 fix cm test that used gl-info_rkt.zo (which is now gone) 2010-11-07 19:21:03 -07:00
Matthew Flatt
39596efef5 cocoa and gtk: fix combo% `on-popup' method 2010-11-05 15:54:56 -06:00
Matthew Flatt
e033d9edf1 cocoa & gtk: fix some test failures 2010-11-05 15:54:54 -06:00
Matthew Flatt
4f2e59e7a6 some fixes prompted by the test suite 2010-11-05 15:54:48 -06:00
Matthew Flatt
d2275f4179 level-2 finalization from ffi/unsafe and late-weak references 2010-11-05 15:54:47 -06:00
Matthew Flatt
73dd8cc697 fix gc handling of ephemeron chains 2010-11-05 15:54:47 -06:00
Matthew Flatt
ca64c25cf9 cocoa: control fonts 2010-11-05 15:54:43 -06:00
Matthew Flatt
16b34c236a gtk: misc fixes 2010-11-05 15:54:41 -06:00
Matthew Flatt
b4fafc1888 cocoa: printer-dc% 2010-11-05 15:54:38 -06:00
Matthew Flatt
70b26a5885 win32: more menus and widgets 2010-11-05 15:54:32 -06:00
Matthew Flatt
604afc1803 win32 widgets, mouse events, and cursors 2010-11-05 15:54:32 -06:00
Matthew Flatt
5809bc7790 fix slider value display and 'plain option 2010-11-05 15:54:27 -06:00
Matthew Flatt
c3fa1f01e8 cocoa mouse event and cursor fixes 2010-11-05 15:54:22 -06:00
Matthew Flatt
a747047145 special-option-key for cocoa 2010-11-05 15:54:19 -06:00
Matthew Flatt
a7a629e45b showkey as module 2010-11-05 15:54:18 -06:00
Matthew Flatt
40c1c2ffef cocoa cursors 2010-11-05 15:54:16 -06:00
Matthew Flatt
b020c2f858 fix gtk widget size info for sizing and positioning 2010-11-05 15:54:12 -06:00
Matthew Flatt
cc55bd7e93 restore auto-scroll canvases; fix text-rotation bug 2010-11-05 15:54:12 -06:00
Matthew Flatt
b69d4322af fix canvas dc size reporting 2010-11-05 15:54:10 -06:00
Matthew Flatt
c42d95216e auto-scroll canvases and frame status lines 2010-11-05 15:54:10 -06:00
Matthew Flatt
626ceef11b misc repairs 2010-11-05 15:54:06 -06:00
Matthew Flatt
d7289c253f support general transformation matrix 2010-11-05 15:54:04 -06:00
Matthew Flatt
049e4dbdcb fix clipping 2010-11-05 15:54:00 -06:00
Matthew Flatt
dc00e22b85 fix drawing bugs and improve backward compatibility 2010-11-05 15:53:58 -06:00
Matthew Flatt
88606ae251 drawing repairs 2010-11-05 15:53:58 -06:00
Vincent St-Amour
4c081c127a Fixed a fixnum typechecking issue. 2010-11-04 17:27:34 -04:00
Casey Klein
bd0ebc7511 Adds auto-completion to LaTeX and TeX inspired keybindings 2010-11-02 22:34:05 -05:00
Jay McCarthy
6d2042fbd9 The stacks appear to be different, so maybe the JIT is different on Linux and disabling it will get stable output? 2010-11-02 15:44:35 -06:00
Jay McCarthy
7c452ad7ea Maybe the DrDr error is related to flushing? 2010-11-01 10:20:31 -06:00
Eli Barzilay
a7220062de old typo 2010-11-01 08:25:35 -04:00
Jay McCarthy
690ed259ad Wrapping standalone tests so that no stderr is produced 2010-10-29 22:35:20 -06:00
Jay McCarthy
ec7157744f Repairing tests 2010-10-29 21:32:31 -06:00
Blake Johnson
783418ce37 only creating zo file 2010-10-29 19:50:12 -06:00
Blake Johnson
b2b5875e3e replacing self modidx refs and tests 2010-10-29 19:50:12 -06:00
Blake Johnson
0688c18593 fixing logging and running code in zo-exs 2010-10-29 19:50:11 -06:00
Blake Johnson
77c46d07ee debugging 2010-10-29 19:50:11 -06:00
Jay McCarthy
ac4fb05f0c Correct error in mutator quote 2010-10-28 11:18:28 -06:00
Jay McCarthy
05832af083 Correct handling of procedure env roots in mutator 2010-10-28 11:18:27 -06:00
Sam Tobin-Hochstadt
561fdc8db5 Avoid dumb parsing bugs in require/typed. 2010-10-26 18:09:45 -04:00
Matthew Flatt
5d8e000d6d swap vector*-ref' and vector-ref', etc.
Merge to 5.0.2
2010-10-25 11:22:35 -06:00
Matthew Flatt
c512dbd6d3 fix bogus reordering of floating-point args in unboxing mode
Merge to 5.0.2
 Closes PR 11272
2010-10-22 21:19:18 -06:00
Stevie Strickland
2847ac86bd Rearrange ->d appropriately to use proxies/chaperones.
Also remove the old tests for tail-call behavior with ->d.
I think it was a faulty way of doing the optimization, and we can't even
do it in the same way now, since we can't get the original "raw" arguments
to the right place via continuation marks.

->i has a much better chance of having this optimization where possible,
and when I start converting ->i, I'll make sure to add appropriate tests.
2010-10-22 16:06:56 -07:00
Robby Findler
31f4a120f1 added two stress tests for ->i performance 2010-10-22 14:07:30 -05:00
Jon Rafkind
4ee161b296 dont require core files 2010-10-22 10:48:09 -06:00
Jon Rafkind
a3fefc1c35 add struct example 2010-10-22 10:48:07 -06:00
Jon Rafkind
a998a57000 add function tests 2010-10-22 10:48:06 -06:00
Sam Tobin-Hochstadt
dcd3f9a9aa Flush output in fuzz testing. 2010-10-21 23:40:12 -07:00
Jay McCarthy
c2f8e4c0fe Adding attributes to select-input 2010-10-21 22:29:28 -07:00
Eli Barzilay
aebf9e77ef Fix require in test suite 2010-10-21 20:25:37 -04:00
Eli Barzilay
2f5265854a Rename seqn-*' to stream-*'.
Later this will grow, to include a few kinds of streams in a unified
way, and possibly change the sequence protocol to a point where these
functions are not causing such big runtime penalties.
2010-10-21 19:49:39 -04:00
Stevie Strickland
b272c02548 Have unconstrained-domain-> do tail checks as well. 2010-10-21 16:22:51 -07:00
Stevie Strickland
84f3cb115b Add proxies for -> and ->*.
Attempt to do a recently intelligent job by using more specific lambdas
when possible (i.e., when the arity of the function matches the arity
specified by the contract).

Also, change testcases that test creation of proxy contracts to stop
depending on the proxy-ness of -> contracts.  This also uncovered a bug
in the testcase that checks that proxy contracts aren't allowed for
the domain in hash/c.
2010-10-21 15:03:42 -07:00
John Clements
b37187da59 added universe-test 2010-10-21 07:19:10 -07:00
John Clements
d18f43a488 cosmetic changes only 2010-10-20 12:05:06 -07:00
Vincent St-Amour
a15236ea4f Fix opt-lambda:. Merge to 5.0.2. 2010-10-20 14:32:37 -04:00
Robby Findler
b91a0da469 fixed and ->i bug that could cause expressions to be evaluated twice 2010-10-20 08:37:26 -05:00
John Clements
70898379c5 copied 'mzlib/convert-prop attachment from outer layer to inner layer. 2010-10-19 23:28:45 -07:00
Sam Tobin-Hochstadt
9cc35d59fe Fix fuzz tester prop. 2010-10-19 17:58:29 -07:00
John Clements
0536d52efd looks like a fix for cond 2010-10-19 17:50:35 -07:00
Robby Findler
ea985a81d6 added some more information to the error messages when a syncheck test case fails 2010-10-19 18:41:20 -05:00
Sam Tobin-Hochstadt
50bf3dc1be Add zo-read/parse/run fuzz tester. 2010-10-19 14:51:13 -07:00
John Clements
2083181d2e got testing harness working again. 2010-10-19 14:37:44 -07:00
Jay McCarthy
afd3a90607 Adding preamble to make-xexpr-response 2010-10-19 11:29:49 -07:00
Matthew Flatt
ddca8cd29b fix non-inlined `in-vector' sequence on proxied vectors
Merge to 5.0.2
 Closes PR 11225
2010-10-18 13:48:22 -07:00
Mike Sperber
32455894bc Unbreak the test-engine-test.rkt test suite.
- signatures are only in ASL now
- the error messages for the DMdA languages are different
2010-10-18 09:37:48 +02:00
Matthew Flatt
caa747e5c6 fix an interaction of `dynamic-wind' pre thunks and composable continuations
Merge to 5.0.2
2010-10-16 19:44:33 -06:00
Jay McCarthy
e6b2965d39 Re-enabling tests 2010-10-15 13:08:39 -06:00
Jay McCarthy
f6fbc85d1b Adding test printing tests 2010-10-15 13:08:38 -06:00
Jay McCarthy
e8ceade2a5 Little stress tests 2010-10-15 13:08:38 -06:00
Vincent St-Amour
12a5454b14 Removed logging when no optimization actually happens. 2010-10-14 14:13:06 -04:00
Robby Findler
dac011bc9f move the signature coverage test to ASL since signatures are now only in ASL 2010-10-14 11:45:04 -05:00
Robby Findler
61188f3e44 adjusted to new error messages 2010-10-14 10:06:26 -05:00
Vincent St-Amour
3f5ea8a5be Fixed a test to reflect implicit let in cond instead of implicit begin. 2010-10-14 10:53:43 -04:00
Robby Findler
3e9858b001 added an argument to open-input-text-editor so that it can lock (and unlock) the editor when editing would not be allowed. 2010-10-13 15:55:17 -05:00
Robby Findler
798e35bb4c fixed a bug in the test suite so that test errors are now (all) reported to stderr instead of stdout
also added a test suite for teh 'language in the source' language
2010-10-13 15:55:17 -05:00
Matthew Flatt
6e23fcda5f fix _short' and other non-_int' integer types, and add `_intptr' test 2010-10-13 08:50:47 -06:00
Matthias Felleisen
df62ca47e9 added 'function', Closes PR 11283 2010-10-13 10:31:00 -04:00
Mike Sperber
bb098fc77c Added rudimentary test suite for test engine. 2010-10-13 14:01:07 +02:00
Vincent St-Amour
27e722f27b Inexact-Complex -> Float-Complex 2010-10-12 16:47:46 -04:00
Vincent St-Amour
a59a99c42d Changed the TR numeric tower to use the new flonums. 2010-10-12 16:47:45 -04:00
Vincent St-Amour
f3ae9c73b0 Changed the interface for running single optimizer tests. 2010-10-12 16:47:45 -04:00
Matthew Flatt
bf4fc2574c fix syntax colorer for #true and #false 2010-10-12 08:22:12 -06:00
Matthew Flatt
99df8e1267 allow internal definitions in when', unless', cond, case', `match' 2010-10-12 06:41:49 -06:00
Eli Barzilay
6295824851 Some additional tests, and use () instead of {} for racket sexprs 2010-10-11 15:07:28 -04:00
Matthew Flatt
fe301b1ff4 print-boolean-long-form, #true, #false, read-accept-lang, flonum? 2010-10-08 15:13:04 -06:00
Mike Sperber
219c91d8e7 Check parametric struct/record signatures eagerly. 2010-10-08 17:01:47 +02:00
Mike Sperber
87da2f35b9 Provide English and German versions of deinprogramm/signature/signature. 2010-10-08 11:19:38 +02:00
Vincent St-Amour
db0046101c Improved TR's error messages when all domains but one have been eliminated. 2010-10-07 18:30:35 -04:00
Matthew Flatt
65ad6aee20 fix `touch' to run a suspended future in the runtime thread
if no future thread is running the future; also adjust the
 policy for suspending a future so that even synchronized
 operations can suspend if there's other work to be done;
 also also fix `current-future' for nested `touch'es and when
 parallel futures are disabled
2010-10-07 14:58:53 -06:00
Matthew Flatt
15302dc844 adjust futures to decouple blocked futures from worker threads
which required adding a notion of "lightweight continuation" to
 the runtime system, where a lightweight continuation involves
 only frames from JIT0generated code (so that details of the stack
 layout are known, for example)
2010-10-07 07:39:16 -06:00
Vincent St-Amour
3ec9503da9 Changed the typed benchmark harness to reflect optimization on by default. 2010-10-06 17:32:31 -04:00
Vincent St-Amour
abcbce129b Changed the optimizer's test harness for optimization on by default. 2010-10-06 17:32:30 -04:00
Jon Rafkind
2f730f479c add keyword argument to eli-tester that allows for silent successes 2010-10-06 11:10:43 -06:00
Jay McCarthy
57d27373ac Fixing struct pattern optimization 2010-10-05 09:55:16 -06:00
Matthew Flatt
5a7ef5ee3f some unsafe-...* fixes on chaperones 2010-10-05 06:29:47 -06:00
Matthew Flatt
649242ac86 fix JIT-inlined vector-set!' and set-box!' to not mutate immutable 2010-10-05 06:29:47 -06:00
Eli Barzilay
8709715bf4 Add a test file to check the hack that errortrace uses.
(Makes it easy to know when it breaks, and hopefully to fix it when that
happens)
2010-10-04 22:22:24 -04:00
Jay McCarthy
0c47e572c0 Using unsafe operations in racket/match 2010-10-04 15:54:59 -06:00
Ryan Culpepper
ad76c9ea7b fixed splay-tree bug 2010-10-04 11:54:03 -06:00
Ryan Culpepper
4aef03795d added ordered-dict test 2010-10-04 11:54:03 -06:00
Vincent St-Amour
5a67535a95 Got rid of a broken subtyping rule. 2010-10-01 17:48:47 -04:00
Vincent St-Amour
f7436b59fb Delete compiled benchmarks when testing. 2010-10-01 17:48:46 -04:00
Matthew Flatt
d6684dad8c fix cstruct alignment handling 2010-10-01 10:49:40 -06:00
Matthew Flatt
4b120e5d86 add `proxy-prop:application-mark' 2010-09-29 12:26:46 -04:00
Robby Findler
2649e21e4b fixed race-condition in hangman test case 2010-09-24 20:33:58 -05:00
Matthew Flatt
c1aa594657 add fvectors and unsafe-{s,u}16-{ref,set!} 2010-09-24 16:32:07 -06:00
Stevie Strickland
d2a3cbf6d0 Add better first-order checking for ->d and ->i.
Closes PR 11247.
2010-09-23 14:35:45 -04:00
Matthew Flatt
3d16dd698a fix JIT-generated code for `vector-length' on a fixnum
and also code for operations like `fl<' on fixnums in
 certain build modes (CGC, PPC)
2010-09-23 06:46:10 -06:00
Mike Sperber
593f8588fe Implement lazy signature checking for ordinary pairs. 2010-09-22 11:03:01 +02:00
Robby Findler
8499a4e65d added a test suite for the hangman teachpack 2010-09-21 15:27:49 -05:00
Eli Barzilay
ee138cf2cb Some repeated "and and"s and "the the"s, and two more typos.
Closes PR 11229.
2010-09-20 15:38:18 -04:00
Kevin Tew
faa0c86f50 Places: fix asynchronous receive 2010-09-20 08:42:55 -06:00
Matthew Flatt
fa7dd9b522 rename file to avoid :, which is not allowed under Windows 2010-09-20 03:31:18 -06:00
Stevie Strickland
3325350026 At Robby's request, remove the check for proxy-of?.
Due to the bad interaction between procedure-rename and getting the
contract info from the proxy/chaperone, this will cause a failure in
the contract test cases.  I'm submitting a bug report for that issue.
2010-09-18 13:55:09 -04:00
Matthew Flatt
d92c4e44e2 fix make-reader-graph on proxied vectors 2010-09-17 18:42:29 -06:00
Ryan Culpepper
0d76f8ecbf added data/order, docs
changed splay-tree, skip-list constructors to take orders
2010-09-17 16:54:54 -06:00
Ryan Culpepper
b74f3461e1 added general order functions 2010-09-17 16:54:54 -06:00
Matthew Flatt
f663307252 fix problem with procedure-chaperone, keywords, and proxy properties 2010-09-17 16:29:15 -06:00
Matthew Flatt
3866c3e450 generalize `flvector-copy' to support start and end indices 2010-09-17 13:35:01 -06:00
Will M. Farr
beb2175456 Added flvector-copy (with tests and docs). 2010-09-17 13:35:01 -06:00
Robby Findler
c6fc7137ee Adjusts the contract system so that it preserves the names of functions.
closes PR 11220

Altho, this does not fix the case where a function is being passed thru
another contracted function. Eg, when you give the identity function
this contract: (-> (-> integer? integer?) (-> integer? integer?))
if you pass some function with a name in there, it won't come
back with a name anymore (indeed, it won't even have the name
anymore in the body of the function).

For that, the fix would have to be put into each of the function
contract combinators.
2010-09-17 11:30:04 -05:00
Matthew Flatt
232a580e53 add prop:proxy-of'; Fix chaperone-of' on keyword-accepting procedures 2010-09-17 08:55:46 -06:00
Jay McCarthy
2447d8d07c Adding test case to clarify student's error 2010-09-16 21:00:05 -06:00
Jay McCarthy
01a41a812e Closing pr11216. Adding one armed check-error to teaching languages.
[It will not bother me if we revert this commit. I liked SK's idea and found it easy to implement. I wonder if others will be worried that it is easy to unintentionally leave off the second argument to check-error. I also wonder if it is problematic to add new string constants, like I've done.]

Here is an example:

(check-error (/ 1 0) "/: division by zero")
(check-error (/ 1 0) "divide by zero")
(check-error (/ 1 0))
(check-error 1)

Here is the output:

Ran 4 tests.
2 of the 4 tests failed.

No signature violations.

Check failures:
	check-error encountered the following error instead of the expected divide by zero
   :: /: division by zero
in ex.rkt, line 2, column 0
	check-error expected an error, but instead received the value 1.
in ex.rkt, line 4, column 0
2010-09-16 21:00:05 -06:00
Stevie Strickland
a930719a87 Add the contract information to chaperoned boxes, hashes, and vectors. 2010-09-16 20:49:04 -04:00
Jay McCarthy
afcc7c818d Fixing redirectget test 2010-09-16 13:42:47 -06:00
Ryan Culpepper
1a03a47842 updated splay-tree & skip-list interfaces, docs, tests, performance tests 2010-09-16 13:20:07 -06:00
Ryan Culpepper
19be445d89 contracts for gvector, skip-list
reorganized tests
2010-09-16 13:20:06 -06:00
Stevie Strickland
2677cbf1a4 Cleanups to first-order checking for box/vector/hash contracts.
* We no longer capture a contination when we have blame information.
 * We perform first-order checks more eagerly in the mutable case.
2010-09-16 15:04:41 -04:00
Stevie Strickland
b416b7e5bb Now migrate vector/c and vector-immutable/c.
Also add old-style vector/c to mzlib/contract.
2010-09-16 15:04:41 -04:00
Stevie Strickland
3028f2d142 Convert vectorof/vector-immutableof to the new regime.
Also add old-style vectorof to mzlib/contract.
2010-09-16 15:04:41 -04:00
Blake Johnson
c88eb704c7 removing indirects from zo handling 2010-09-16 12:45:37 -06:00
Jay McCarthy
4f49658835 Fixing problem reported by Robby.
Contracts intefere with safety marks.
2010-09-16 12:45:37 -06:00
Jay McCarthy
ab5a9ff1e8 Removing extra run-tests 2010-09-16 12:45:37 -06:00
Jay McCarthy
1f4c525245 Fixing pr11214 2010-09-16 12:45:37 -06:00
Jay McCarthy
4a89ccea5d Fixing an annoyance with eli-tester when the error string contains ~ 2010-09-16 12:45:36 -06:00
Vincent St-Amour
7e2094f2d7 Added a test for optional let annotations. 2010-09-16 13:24:10 -04:00
Vincent St-Amour
e03e53b1cb Fix some optimizer test logs to reflect racket changes. 2010-09-16 10:48:28 -04:00
Vincent St-Amour
9f87b5a7e6 Made some type annotations optional in the for: macros. 2010-09-15 20:21:51 -04:00
Vincent St-Amour
8b60085a17 Removed useless requires. 2010-09-15 20:21:51 -04:00
Vincent St-Amour
a10d145f25 Added annotated versions of the for macros that generate vectors.
They are purposedly left out of the documentation since the typchecker
can't currently handle their expansion.
2010-09-15 20:21:50 -04:00
Vincent St-Amour
65c502f9d7 Added a test to make sure derived lists accessors don't get optimized then they shouldn't. 2010-09-15 20:21:50 -04:00
Stevie Strickland
e3678a937e Change box-immutable/c to use box/c with #:immutable #t. 2010-09-15 17:05:34 -04:00
Stevie Strickland
99e5d6fd6c Add appropriate syntax properties to uses of box/c. 2010-09-15 16:57:17 -04:00
Stevie Strickland
994ad6d10f Now change box/c to use proxies or chaperones appropriately.
Create a mzlib/contract compatible version of the old box/c and use that
for mzlib/contract.  Change the docs so that the docs for mzlib/contract
contain the right information.

Fix the typed-scheme implementation to only force flat box (or hash)
contracts when it already is required to be flat.  Otherwise, allow
non-flat contracts for the element contract (or domain/range contracts).
2010-09-15 16:57:17 -04:00
Stevie Strickland
4a48da022b Adding syntax properties for contract obligations to uses of hash/c. 2010-09-15 15:01:27 -04:00
Stevie Strickland
56b83e4a96 Add chaperone-based hash/c contracts.
* Domain contracts must be either flat or chaperone contracts.
 * When the domain is a chaperone contract, hash/c must check
   that the hash is equal?-based.
2010-09-15 13:57:50 -04:00
Stevie Strickland
d2b3ee8892 Code and test fixes for new chaperone-based hash/c contracts. 2010-09-15 13:37:37 -04:00
Robby Findler
3121ab0fce I agree with Stevie that 1 is the right answer here. 2010-09-15 08:23:34 -05:00
Stevie Strickland
ec0711bf49 Add chaperone contract-related properties.
* Flat contracts are chaperone contracts, and chaperone contracts
    are (proxy) contracts.
  * Check in chaperone contracts that a chaperone (or chaperone-friendly
    value) is indeed returned.
2010-09-14 18:29:39 -04:00
Stevie Strickland
56a5a2627e Enforce that flat contracts return the original value.
Also fix up tail call contract handling, which was affected by this change.
2010-09-14 18:28:46 -04:00
Ryan Culpepper
ae645a18c1 added dict-*-contract to racket/dict
added experimental ordered-dict generics (not public yet, no docs)
2010-09-14 12:31:26 -06:00
Ryan Culpepper
58aa6873fe added data/heap tests
doc fixes
2010-09-14 12:31:26 -06:00
Matthew Flatt
b601aa1ca3 fix pretty-print graph bug 2010-09-14 08:05:35 -06:00
Ryan Culpepper
999c33827c tests for splay-tree and skip-list 2010-09-13 13:21:04 -06:00
Jay McCarthy
43d527818e Fixing pr11196 and fixing bug in hash-eqv serialization 2010-09-13 10:44:21 -06:00
Robby Findler
1dc555e0af fixes _ in contract-names for ->i
closes PR 11185
2010-09-11 07:48:50 -05:00
Robby Findler
93ecaa0535 fixed object-contract name tests 2010-09-11 07:36:21 -05:00
Robby Findler
d8a495de94 fixed first half of PR 11185 2010-09-11 07:12:17 -05:00
Sam Tobin-Hochstadt
979561354d Fix internal error when single value expected. 2010-09-10 18:29:34 -04:00
Blake Johnson
1cb11ce6cc re-enabling tests 2010-09-10 14:46:04 -06:00
Blake Johnson
407a36c9d2 Changing memory limit 2010-09-10 14:46:04 -06:00
Blake Johnson
e94823b82c Removing pieces of zo-test-worker we dont care about 2010-09-10 14:46:03 -06:00
Blake Johnson
0d136ba4c7 never sharing hashes and trace debugging 2010-09-10 14:46:03 -06:00
Blake Johnson
32a9e60abe traversing inside closures and using a seen set for lists 2010-09-10 14:46:03 -06:00
Blake Johnson
2dfaab00f4 fixing closure problem 2010-09-10 14:46:03 -06:00
Blake Johnson
ecc9ceb842 zo-marshal fixes and switching back to prefabs 2010-09-10 14:46:03 -06:00
Blake Johnson
54f2d34a2e encoding wraps and fixes for zo-marshal sharing 2010-09-10 14:46:02 -06:00
Blake Johnson
9599304ca9 zo-marshal fixes and read.c fix for hash tables in symbol table 2010-09-10 14:46:02 -06:00
Blake Johnson
f27fe3d5c9 zo-parse debugging and read in zo-exs 2010-09-10 14:46:01 -06:00
Matthew Flatt
ff9b535dc6 fix hash proxying in the case that proxied key has no value 2010-09-10 12:46:58 -06:00
Robby Findler
44fe632da5 fixed two bugs in ->i:
- when optional arguments didn't also have rest args,
    it generated the wrong wrapper function
  - the object-contract interaction was broken;
    it was not adding the this argument in
Also removed the hack added earlier this eve.
closes PR 11180
2010-09-09 21:42:41 -05:00
Vincent St-Amour
0166ece180 Extended pair optimization to the rest of the standard derived pair accessors. 2010-09-09 18:54:34 -04:00
Vincent St-Amour
7450821068 Refactoring. 2010-09-09 18:54:34 -04:00
Vincent St-Amour
024f873947 Extended pair optimizations to some derived pair accessors. 2010-09-09 18:54:33 -04:00
Vincent St-Amour
7f546434ed Included expected optimization logs in the test files. 2010-09-09 18:54:33 -04:00
Will M. Farr
81b1ed6e8b New updates to for/vector, for*/vector, for/flvector and for*/flvector.
Now use for/fold to thread the index through the iteration form, so
that all variants can take advantage of the optional #:length
argument.  Previously, only the for/vector and for/flvector used the

The behavior when #:length does not match the number of iterations has
changed: iteration stops when either the vector is full, or the
requested number of iterations has been achieved, whichever comes
first.  If #:length is larger than the number of iterations performed,
then the remaining slots in the vector are filled with the default
argument of (make-vector ...), which is currently 0.
2010-09-09 16:23:04 -04:00
Will M. Farr
3d016150a3 Updates to for/vector, for/flvector forms and documentation.
- Now the faster forms take a #:length keyword to designate the length
  of the vector to pre-allocate.

- The for/[fl]vector forms take multiple body expressions and set the
  vector component to the value of the last one.

- When given a #:length argument, the for/vector and for/flvector
  forms check that the iteration is not exceeding the given length,
  raising exn:fail if it does.

- Test cases for the multiple body expressions and the exception for
  excessive iterations have been added.

- Doc modifications to bring the docs in line with the new forms.

- Doc modifications to note that the #:length versions of the form
*may* all the computation to be performed more efficiently, and
stating that it "is an error" if the given length-expr does not
produce a valid length for a vector that matches the number of
iterations for the loop.

- Note that no test is made for a number of loop iterations that is
  smaller than the given vector length.  Also, the for*/[fl]vector
  forms do not optimize when given a #:length argument.  These are
  areas for future improvement.
2010-09-09 16:22:53 -04:00
Sam Tobin-Hochstadt
00a8a85f9d Fix typechecker tests for new environment setup. 2010-09-09 16:08:04 -04:00
Sam Tobin-Hochstadt
b6b840076b Lots more laziness, and useless require removal. 2010-09-09 16:08:03 -04:00
Casey Klein
a773471b7e Strengthens the definition-finder tests 2010-09-09 13:42:15 -05:00
Robby Findler
72afa3d7b3 fixed the teachpack test suite for the new teachpack dialog 2010-09-09 13:17:27 -05:00
Casey Klein
f1be76f2e2 Special-cases DrRacket's definition-finder to find Redex metafunction definitions 2010-09-09 12:07:24 -05:00
Kevin Tew
324a0ce815 Places: check arguments 2010-09-09 10:28:34 -06:00
Kevin Tew
732c62b2a5 Places: benchmarks 2010-09-09 10:28:34 -06:00
Eli Barzilay
ee587ce327 Move the contract stress tests into their proper place. 2010-09-09 12:22:03 -04:00
Robby Findler
ba78b8389b added a test to show a performance problem in the contract library 2010-09-09 09:29:42 -05:00
Mike Sperber
9d35548997 Unbreak `list-of'. 2010-09-09 13:17:22 +02:00
Sam Tobin-Hochstadt
a0e77705e5 Propogate #:mutable for polymorphic structs.
Closes PR 11127
2010-09-08 10:47:51 -04:00
Sam Tobin-Hochstadt
91fefa055e Make syntax of #{} less accepting of errors. 2010-09-08 10:24:58 -04:00
Vincent St-Amour
14097dd90e Fix broken tests that depended on an unsafe optimization. 2010-09-07 20:11:44 -04:00
Stevie Strickland
6d7be2bab3 Fix expected result from contract test that fails due to sorting. 2010-09-07 11:47:14 -04:00
Ryan Culpepper
cf47297a07 gvector tests, fixed bugs, added for/gvector docs 2010-09-06 22:15:29 -06:00
Jay McCarthy
f440332768 Fixing confusing printing from Arjun 2010-09-06 17:03:16 -06:00
Jay McCarthy
f2b5a454bd Fixing problem reported by Nadeem Abdul Hamid 2010-09-06 10:35:03 -06:00
Robby Findler
a2b11a0329 unbroke the test suite ... 2010-09-04 11:18:39 -05:00
Robby Findler
994c28d8b0 started a test suite for the check syntax coloring annotations that the contract system leaves behind 2010-09-04 11:18:38 -05:00
Matthew Flatt
26e0ad955a fix `unsafe-set-box*!' 2010-09-03 15:44:34 -06:00
Robby Findler
ad9548db7d added a README 2010-09-02 15:41:02 -05:00
Robby Findler
a12f47f506 moved the teaching language test suites to their own directory 2010-09-02 15:41:02 -05:00
Jay McCarthy
f272acec5f Correcting bug discovered by Arjun 2010-09-02 07:04:22 -06:00
Matthew Flatt
962ceb6b63 fix interaction between copy prop and once-used binding elimination
in the bytecode compiler, which could cause an expression to be
 duplicated
2010-09-01 15:22:32 -06:00
Matthew Flatt
69658697b1 add proxies and rename chaperone properties to proxy properties
where a proxy is less constrained in its conversions but more
 constrained in where it can be used
2010-08-31 19:15:20 -06:00
Ryan Culpepper
bfb1eed2e9 updated test 2010-08-31 17:15:36 -06:00
Ryan Culpepper
712a8f60e9 updated syntax/parse/exp./splicing, updated honu use
fixed stress.rkt
2010-08-31 16:21:44 -06:00
Ryan Culpepper
d7a87c79e0 Merged changes to syntax/parse
Changed backtracking algorithm, runtime representations
    - syntax classes, ~describe no longer implicitly commit
    - ~describe no longer delimits effect of cut
  Added keyword & optional args for stxclasses
  Added ~do and #:do, ~post, ~commit and #:commit,
    ~delimit-cut and #:no-delimit-cut
  Added syntax/parse/debug, syntax/parse/experimental/*
    - expr/c for contracting macro sub-expressions
      moved from syntax/parse to syntax/parse/experimental/contract
    - syntax class reflection (~reflect, ~splicing-reflect)
    - eh-alternative-sets (~eh-var)
    - provide-syntax-class/contract
      (only for params, not attrs so far)
  Changed ~fail to not include POST progress (#:fail still does)
    old (~fail _) is now (~post (~fail _))
  Made msg argument of ~fail optional
  Removed generic "repetition constraint violated" msg
  Removed atom-in-list stxclass
  Removed unnecessary datum->syntax on cdr of pair pattern
    massive improvements to long-list microbenchmarks
  Optimization: integrable syntax classes (id, expr, keyword)
    need better measurements
  Optimization: ad hoc elimination of head/tail choice point
    for (EH ... . ()) patterns
  Added unstable/wrapc (proc version of expr/c)
2010-08-31 10:55:58 -06:00
Matthew Flatt
76c3c76214 fix yet more ss<->rkt problems that interfered with *SL executables
Closes PR 11106
2010-08-30 14:35:18 -06:00
Kevin Tew
bc5d1c2011 Places: added shared-flvector and shared-byte string 2010-08-30 08:50:07 -06:00
Robby Findler
cfa1c9bf43 fixed a bug in the test suite (so that now the language is only changed when needed) 2010-08-30 09:23:34 -05:00
Robby Findler
35de0b22d0 added a test coverage test suite 2010-08-30 09:23:34 -05:00
Robby Findler
ab839f9efd minor rackety 2010-08-30 09:23:34 -05:00
Robby Findler
eb75edfaa1 renamed drracket test suite 2010-08-30 09:23:33 -05:00
Jay McCarthy
f899e03b59 Moving stress tests 2010-08-30 06:39:12 -06:00
Jay McCarthy
6a43e379e1 Correct test usage of port 2010-08-30 06:39:11 -06:00
John Clements
4d1d1e5b0e removed new stepper test from automatic testing (until fixed). 2010-08-29 10:38:27 -07:00
Vincent St-Amour
e1fd445fa4 Ignored a rounding error between PPC and x86. 2010-08-29 10:17:56 -04:00
Robby Findler
23739a21d8 fixed indentation 2010-08-29 05:17:41 -05:00
Robby Findler
454f8772ab unbroke Eli's change 2010-08-29 05:17:41 -05:00
Jay McCarthy
bc15f398f2 Increasing FTP test stability 2010-08-28 18:52:39 -06:00
Jay McCarthy
c24d6f94e7 Supporting empty programs in datalog languages, fixes pr11140 2010-08-28 15:54:38 -06:00
Robby Findler
36c2eea571 an attempt to be more windows friendly 2010-08-28 14:06:01 -05:00
Jay McCarthy
33d7eb40e3 Fixing pr11136 and adding tests and fixing old tests re extension change 2010-08-28 08:30:14 -06:00
John Clements
3b94602e2e added test case for PR 11120 2010-08-27 16:42:32 -07:00
Vincent St-Amour
b386f01ee4 Improved sandboxing with code from Eli. 2010-08-27 18:18:51 -04:00
Vincent St-Amour
f06c2d4926 Removed obsolete comment. 2010-08-27 18:18:51 -04:00
Vincent St-Amour
9f540bce01 Better way to setup the sandbox input. 2010-08-27 14:43:22 -04:00
Vincent St-Amour
1c9e8e05b0 Cleanup of the test harness. 2010-08-27 13:29:43 -04:00
Vincent St-Amour
7cfba9f02d Renamed tests directory to make more sense with the new structure. 2010-08-27 13:29:43 -04:00
Vincent St-Amour
ca16ac4db5 Improved logging since it's now used for testing. 2010-08-27 13:29:42 -04:00
Vincent St-Amour
18af26ec9b Test expected optimizations by comparing optimizer logs instead of expanded code. 2010-08-27 13:29:42 -04:00
Robby Findler
c8e68e5e31 updated the docs to reflect that the various checks return void. Also added in some tests to that effect. 2010-08-27 11:27:29 -05:00
Jay McCarthy
7190d423f7 Fixing pr11125 2010-08-26 17:14:09 -06:00
Jay McCarthy
d4e3946ba2 Adding apply stress test from Will M. Farr 2010-08-26 17:14:09 -06:00
Sam Tobin-Hochstadt
0635fc6d75 Create data/ collection.
- Initially populated with queues, skip-lists, and interval-maps from unstable/
 - Tests in tests/data, docs in data/scribblings
2010-08-26 18:22:28 -04:00
Vincent St-Amour
46b2a2113a Use sandboxes instead of duplicate files to test results when optimizing. 2010-08-26 18:08:41 -04:00
Vincent St-Amour
eadc2a7e4c Exclude directories when testing TR's optimizer. 2010-08-26 17:46:59 -04:00
Vincent St-Amour
ea472a9d57 Added with-asserts, from code from Neil Toronto. 2010-08-26 17:46:58 -04:00
Sam Tobin-Hochstadt
7fc38693ec Fix tests for new output. 2010-08-26 16:59:12 -04:00
Sam Tobin-Hochstadt
3e4ddde808 Tests for new optimizer additions. 2010-08-26 16:59:12 -04:00
Sam Tobin-Hochstadt
fd2d37a710 Add optimization for `magnitude', fix handling of functions that return floats, not complexes. 2010-08-26 16:59:12 -04:00
Eli Barzilay
8e0f8dd39c More "~n" -> "\n" changes 2010-08-26 12:11:00 -04:00
Eli Barzilay
7dc4d2e5a6 Change a bunch of "~%" and "~n" in format strings to "\n". 2010-08-25 17:17:01 -04:00
Eli Barzilay
606b7f60dc Lots of "~e" to "~.s" changes. 2010-08-25 17:17:01 -04:00
Eli Barzilay
e179449d0e Switch to `racket/base', change some "~e"s to "~.s"s, also reformat and
a few minor improvements.
2010-08-25 17:17:01 -04:00
Eli Barzilay
da083f05e8 avoid relying on bash 2010-08-25 17:17:01 -04:00
Kevin Tew
19a00d887e Places: allow channels in compound data communications 2010-08-25 15:10:15 -06:00
Jay McCarthy
45a8854398 Adding immutable hash operations to ASL 2010-08-25 10:36:36 -06:00
Jay McCarthy
368d711ae2 Optional arguments to hash table constructors in ASL 2010-08-25 10:36:34 -06:00
Sam Tobin-Hochstadt
b08de170bc Add Futureof' type, types for future' and `touch' 2010-08-25 10:27:07 -04:00
Matthew Flatt
cf300b91b9 JIT-inline even?' and odd?' on fixnums 2010-08-24 19:29:20 -06:00
Robby Findler
5de6ff2ada Adjusts the prompt handling so that it submits expressions that signal
arbitrary read errors, but does not submit those that raise eof errors.
closes PR 11126
2010-08-24 20:06:45 -05:00
Kevin Tew
b86e48a567 Places: benchmark tests 2010-08-24 10:39:07 -06:00
Jon Rafkind
e077b87d50 fix PR 11123: 0-ary generator yield 2010-08-24 00:11:22 -06:00
Jon Rafkind
4bca9842f5 Make in-generator work when yield returns multiple values 2010-08-23 12:50:08 -06:00
Mike Sperber
a4e7ef3594 Push mixed' contracts down into lazy struct' contracts. 2010-08-23 14:40:21 +02:00
Sam Tobin-Hochstadt
72f31ffec0 Use current-readtable as the base for the TR readtable.
Closes PR 1115.
2010-08-21 14:05:46 -04:00
Robby Findler
32f1f1d8f1 the error window for check syntax now goes away when you Run or edit the definitions window
closes PR 11101
2010-08-20 17:39:45 -05:00
Robby Findler
d93fc805f3 maybe this will help with some of the race conditions showing up in drdr 2010-08-20 17:39:45 -05:00
Jay McCarthy
54e16b18ff Fixing error message on different root installations 2010-08-20 10:35:36 -06:00
Jay McCarthy
9e2ee8ecc6 Fixing another print related test 2010-08-20 10:35:36 -06:00
Jay McCarthy
a8b0a7dce6 Adding zo size reporter test 2010-08-20 10:35:36 -06:00
Robby Findler
22f2e18a99 Fixed a bug in provide/contract that caused it to lose the source location of the original contract, when .zo files were compiled 2010-08-19 23:12:33 -05:00
Will M. Farr
82096abb1b Added interation forms for/vector, for*/vector, for/flvector, and for*/flvector and for-clause in-flvector. 2010-08-19 18:45:13 -04:00
Jay McCarthy
44b34c37a8 Small adjustment to Matthews change 2010-08-19 16:39:54 -06:00
Jay McCarthy
5eb8f181f6 Adding WebSocket stress test and improving fit output 2010-08-19 16:34:16 -06:00
Jay McCarthy
1f61e7eb7f Adding WebSocket example 2010-08-19 16:34:15 -06:00
Jay McCarthy
347e946548 Adding WebSocket support 2010-08-19 16:34:15 -06:00
Jay McCarthy
6f272d2e6a Improving PLAI testing 2010-08-19 10:00:36 -06:00
James Swaine
1a2c0546a6 current-future now returns #f if not inside a future, instead of null. Added documentation for current-future. 2010-08-19 09:36:25 -05:00
Matthew Flatt
50d5dc352e add missing test for *SL define-struct 2010-08-19 07:58:43 -06:00
James Swaine
a41c9b882a Added (current-future) to the futures module (as an inlined, nonblocking primitive). 2010-08-18 23:33:22 -05:00
Robby Findler
3885223cee fixed an ->i bug 2010-08-18 19:30:36 -05:00
Matthew Flatt
e99c53eee8 change `define-type' to use #:reflection-name instead of prop:custom-write 2010-08-18 16:13:58 -06:00
Matthew Flatt
4299b12d5b fix pretty-print problems, especially related to the custom-write property 2010-08-18 16:13:57 -06:00
Sam Tobin-Hochstadt
90eeef60d7 Provide -> in typed-scheme/no-check.
- Closes PR 10882
2010-08-18 16:37:32 -04:00
Kevin Tew
57bda136ea Places: prevent mastergc gen0.big_pages from leaking onto a places gen0.big_pages list 2010-08-18 13:53:08 -06:00
Jay McCarthy
9a31ac5363 Fixing formlet additions 2010-08-18 13:17:11 -06:00
Jay McCarthy
e6219740b8 Correcting problems in Horace's path 2010-08-18 13:17:11 -06:00
Jay McCarthy
3d43c7e7ac Initial versions from Horace Dynamite 2010-08-18 13:17:11 -06:00
Jay McCarthy
04d3a23e1c Removing unnecessary newlines and making tests newline accurate 2010-08-18 13:17:11 -06:00
Jay McCarthy
3be8e3ba86 A little documentation 2010-08-18 13:17:10 -06:00
Jay McCarthy
1aac3c8e53 Expanding stress library 2010-08-18 13:17:10 -06:00
Matthew Flatt
0d9f5016ba fix bytecode-writing inconsistencies related to syntax objects and paths
and improve organization of the docs
2010-08-17 17:18:24 -06:00
Jay McCarthy
fe91e997ee Adding stress testing library 2010-08-13 15:06:14 -06:00
Jay McCarthy
58b9c7a6e4 Fixing seqn-count 2010-08-13 15:06:14 -06:00
Jay McCarthy
339681018a Fixing pr11100 2010-08-13 15:06:13 -06:00
Noel Welsh
5a71a20af9 Merge branch 'master' of pltgit:plt 2010-08-13 17:54:20 +01:00
Sam Tobin-Hochstadt
3359032ad5 Handle structs with special constructors and mutability.
Closes PR 11089.
2010-08-13 11:06:56 -04:00
Sam Tobin-Hochstadt
0c1dfd3c5e Require flat contracts in box/c, hash/c, and vector/c.
Closes PR 11085.
2010-08-13 11:06:56 -04:00
John Clements
215c8dc960 best guess on what keystrokes will trigger insert-()-pair under windows & unix. 2010-08-13 11:01:05 -04:00
John Clements
cfe503f1ce updated framework test framework:
- can now test multi-key sequences

- can now use tests with 'escape

- README changed .ss to .rkt

- added test cases for c:c;c:[
2010-08-13 11:01:04 -04:00
Robby Findler
bdd37c58f0 made the optional arguments clause itself optional for ->* 2010-08-13 08:14:13 -05:00
Robby Findler
120e6a25ee added #:pre and #:post to ->* 2010-08-13 07:05:27 -05:00
Stevie Strickland
a9f6ea69bf Fix creation of a reversed List type from ListDots substitution. 2010-08-12 17:46:39 -04:00
Jay McCarthy
8c32de33c6 Adding sequence support for mlists and more sequence xrefs 2010-08-12 14:10:20 -06:00
Jay McCarthy
2751ace762 Adding more sequence operators 2010-08-12 14:10:19 -06:00
Jay McCarthy
3fe91f0fdd Adding vector-set* and dict-set* exn tests 2010-08-12 14:10:19 -06:00
Jay McCarthy
d047557dc6 Adding dict-has-key? and updating unstable 2010-08-12 14:10:18 -06:00
Jay McCarthy
958c771ec8 Removing dict functions from unstable 2010-08-12 14:10:18 -06:00
Jay McCarthy
bdc26b53bb Adding dict-ref bang 2010-08-12 14:10:18 -06:00
Jay McCarthy
2d1787a309 Add dict-set* 2010-08-12 14:10:18 -06:00
Jay McCarthy
a8fc09b49a Adding dict-keys,values,->list 2010-08-12 14:10:18 -06:00
Jay McCarthy
f23daa3aea Rename hash-range and domain to keys and values 2010-08-12 14:10:17 -06:00
Jay McCarthy
e06f0e78b2 Adding hash-set* and hash-set*bang 2010-08-11 17:39:48 -06:00
Jay McCarthy
58ad011ce9 Adding hash->list 2010-08-11 16:42:46 -06:00
Jay McCarthy
db87add6b7 Adding hash-domain and hash-range to racket/base 2010-08-11 16:37:46 -06:00
Jay McCarthy
928dfd6fa2 FTP tests without a network connection 2010-08-11 13:49:10 -06:00
Robby Findler
367779fd27 added contract-struct (like define-contract-struct, but with a
maker whose name does not begin with 'make-')
2010-08-10 22:20:33 -05:00
Robby Findler
26187fed8f fixed a bug in the mzlib contracts test suite 2010-08-10 19:27:17 -05:00
Robby Findler
d15fc5c102 added naming to ->i contracts 2010-08-10 16:52:26 -05:00
Robby Findler
d7503195df fixed a bug where and/c (when given ho contracts) would check them in the wrong order 2010-08-10 16:52:26 -05:00
Robby Findler
561d33fddd improved the name printing for between contracts 2010-08-07 14:35:08 -05:00
Robby Findler
98fb0e5b3a moved a bunch of tests into the official test suite. 2010-08-07 14:35:08 -05:00
Robby Findler
9d98533e23 cleaned up a few little things here and there to pass the last of the existing tests 2010-08-07 14:35:08 -05:00
Robby Findler
da9f5bd61a fixed a few bugs in the ->i implementation and the test suite. 2010-08-07 14:35:07 -05:00
Robby Findler
5922ceda74 improved parsing of #:pre and #:post for ->i (fixed bugs and added more checks to the syntax) 2010-08-07 14:35:06 -05:00
Robby Findler
c1b558e1a3 adjusted the syntax of ->i so that #:post and #:pre get a list of variables now 2010-08-07 14:35:06 -05:00
Robby Findler
8f6080733f fixed some bad ->i test cases 2010-08-07 14:35:05 -05:00
Robby Findler
64a1ddcda9 adjusted the syntax for ->i so that #:rest is not ambiguous anymore (added extra parens, deviating from ->d a little bit) and updated the test suite 2010-08-07 14:35:05 -05:00
Robby Findler
18e9d886e2 added an ->i test suite, based on the ->d one (doesn't test for indy-ness tho) 2010-08-07 14:35:04 -05:00
Jay McCarthy
8a67fceb4a Added attributes to textarea-input based on patch from Horace Dynamite 2010-08-06 20:08:21 -06:00
Vincent St-Amour
4d43c21565 Added a test for unboxed nested loops. 2010-08-05 17:21:54 -04:00
Vincent St-Amour
c653a8e655 Changed optimization order for reals in complex operations.
Made generated names more informative and updated tests accordingly.
2010-08-05 16:43:36 -04:00
Kevin Tew
35a65f90c2 Places: refactor place-channel use 2010-08-05 11:05:54 -06:00
Vincent St-Amour
b18f2353ca Generalize naturals to integers to minimize annotations on mutated variables. 2010-08-05 09:04:25 -04:00
Vincent St-Amour
b1e744b1e1 Fixed tests that used complex literals. 2010-08-05 09:04:24 -04:00
Vincent St-Amour
bdf84f371d Optimize coercion of integer literals. 2010-08-05 09:04:23 -04:00
Vincent St-Amour
1fb68707fc Fixed a test. 2010-08-05 09:04:23 -04:00
Vincent St-Amour
fb31a6556e Added optimization for make-polar 2010-08-05 09:04:22 -04:00
Kevin Tew
3744e224b7 Places: fix sending place channels over place channels 2010-08-04 13:23:00 -06:00
Vincent St-Amour
b47a77dd57 Eliminate user-introduced boxing. 2010-08-02 21:33:30 -04:00
Sam Tobin-Hochstadt
431ff8d794 Don't treat Error types as potentially non-regular. (Reported by SK) 2010-08-02 15:41:42 -04:00
Robby Findler
5e8e4c6ffc a change to hopefully improve the error message this file (sometimes) get in drdr 2010-07-31 10:29:07 -05:00
Matthew Flatt
0e8af6bc5d fix acc/mut error msgs from `define-struct' in teaching languages
Merge to 5.0.1
 Closes PR 11062
2010-07-30 11:16:32 -06:00
Vincent St-Amour
27f8279711 Extended use-site analysis to look through trivial rebindings, to support for loops. 2010-07-29 18:29:59 -04:00
Vincent St-Amour
260de85a6e Make sure that let-bound functions don't escape through a rhs before we change their interface. 2010-07-29 18:29:58 -04:00
Vincent St-Amour
f08456cf07 Extended unboxing of let-bound functions to support let loops. 2010-07-29 18:29:57 -04:00
Vincent St-Amour
3e9e5560bf Be more aggressive when unboxing let bindings. 2010-07-29 18:29:54 -04:00
Vincent St-Amour
bb14424918 More tests for unboxed args of let-bound functions. 2010-07-29 18:29:54 -04:00
Vincent St-Amour
9d471df8b9 Added unboxed arguments to let-bound functions. 2010-07-29 18:29:53 -04:00
Vincent St-Amour
b0d299d1b8 Added unboxed letrec-syntaxes+values bindings. 2010-07-29 18:29:52 -04:00
Vincent St-Amour
8dc23d43eb Added unboxed letrec bindings. 2010-07-29 18:29:52 -04:00
Blake Johnson
8b195d1c3c closing stderr in zo-test 2010-07-28 14:42:48 -06:00
Jay McCarthy
8d36dfad81 Fixing parts of zo-marshal re protect-quote; parallelizing zo-test; there is no the path error again in zo-marshal though 2010-07-27 11:10:54 -06:00
Jay McCarthy
28432037af Fixing up a few things in zo-parse/etc 2010-07-26 12:18:01 -06:00
Blake Johnson
8eeed89982 zo-marshal wrap fixes, optional port for zo-parse 2010-07-26 12:06:02 -06:00
Vincent St-Amour
4803eafa67 Fixed a bug with exact complexes. 2010-07-25 22:15:18 -04:00
Vincent St-Amour
ec39ea5f33 Added one more test for unboxed let bindings. 2010-07-24 17:01:23 -04:00
Vincent St-Amour
5d86813267 Fixed a test that could not work because of shadowing in hand-optimized code. 2010-07-23 18:52:46 -04:00
Vincent St-Amour
ea580e6ff8 Added a test to the optimizer. 2010-07-23 18:52:43 -04:00
Vincent St-Amour
83987fffac let bindings of inexact-complex numbers can be replaced by bindings
for each of their components.

This allows unboxing of intermediate results that are bound and only
ever used in positions where they would be unboxed.
2010-07-23 18:52:42 -04:00
Vincent St-Amour
063b87697a Optimized extracting parts of inexact complexes. 2010-07-23 18:52:42 -04:00
Vincent St-Amour
0493e6f762 Refactoring of the optimizer. 2010-07-23 18:52:41 -04:00
Sam Tobin-Hochstadt
5bb730f72c Optimize (apply + (map f l)) to avoid the intermediate list. 2010-07-23 14:11:40 -04:00
Jay McCarthy
407dcee206 Adding match to ASL 2010-07-22 15:39:53 -06:00
Jay McCarthy
9eb053d4db Adding define-datatype to ASL 2010-07-22 11:36:04 -06:00
Noel Welsh
74dd59e963 Add missing SRFI-41 and SRFI-98 to tests 2010-07-22 04:45:49 +01:00
Vincent St-Amour
ca106a4134 Replaced the safe specialized nbody benchmark by the unsafe version. 2010-07-21 21:09:43 -04:00
Vincent St-Amour
0ee0886cab Optimizations on one-argument cases of arithmetic operations. 2010-07-21 21:09:43 -04:00
Vincent St-Amour
4e944f73ab Added optimization for string-length and bytes-length. 2010-07-21 21:09:42 -04:00
Vincent St-Amour
d6ce6e664f Added box optimizations. 2010-07-21 21:09:42 -04:00
Vincent St-Amour
b13075a1c0 Changed the interface to typed racket's test harness. 2010-07-21 21:09:40 -04:00
Vincent St-Amour
47195410cb Added optimization for zero?. 2010-07-21 21:09:40 -04:00
Matthew Flatt
ce03a34318 another ss->rkt repair to exe creator
Merge to 5.0.1
2010-07-20 06:37:02 -06:00
Matthew Flatt
f602d11a7f raco exe: fix missing ss->rkt conversion and remove debugging printf
Merge to 5.0.1
2010-07-19 14:00:23 -06:00
Jay McCarthy
5417d7a5b7 Fixing path-only documentation and adding new test case 2010-07-19 13:56:01 -06:00
Matthew Flatt
1ea0880f65 add missing test for continuation change 2010-07-16 20:55:07 -06:00
Vincent St-Amour
8aa4fae613 Added whitespace to the typed racket test harness. 2010-07-16 19:08:21 -04:00
Vincent St-Amour
8563f02ba8 Don't abort typed racket's tests if the main tests fail. 2010-07-16 19:08:21 -04:00
Vincent St-Amour
60bfce14bc Fixed unsafe optimization that considered floats as complexes. 2010-07-16 19:08:20 -04:00
Vincent St-Amour
01c170c52f Fixed a segfault in the nbody benchmark. 2010-07-16 19:08:20 -04:00
Vincent St-Amour
b8b852dbc1 Added a test for inexact imaginaries. 2010-07-16 19:08:20 -04:00
Vincent St-Amour
3dab2fbbfc Fixed benchmarks to typecheck even when not-really-dead code is typechecked. 2010-07-16 19:08:19 -04:00
Vincent St-Amour
4d5b50dee9 Further fixes in overlap checking.
Rhss of code dispatching on overlapping structs are no longer
considered dead, and as such, are now typechecked.

Had to fix a test that passed only because some not-really-dead code
was not being typechecked.
2010-07-16 19:08:19 -04:00
Vincent St-Amour
fc29e7e856 Added mutable pair optimizations. 2010-07-16 12:22:16 -04:00
Vincent St-Amour
f21454e711 Fixed an infinite loop. 2010-07-16 12:22:16 -04:00
Vincent St-Amour
c587038b33 The imaginary parts of reals are ignored when doing complex division. 2010-07-16 12:22:15 -04:00
Vincent St-Amour
443d8b9f91 Fixnums and integers can now be coerced for complex operations. 2010-07-16 12:22:15 -04:00
Vincent St-Amour
c645aa7ebc The imaginary parts of inexact reals are ignored when doing complex multiplication. 2010-07-16 12:22:15 -04:00
Vincent St-Amour
b0788372ea Fixed bugs in the tests. 2010-07-16 12:22:14 -04:00
Vincent St-Amour
566aeedb59 Better error reporting by the optimizer's test harness. 2010-07-16 12:22:14 -04:00
Vincent St-Amour
7fb1b41a28 The optimizer's test harness now makes sure that optimized and
non-optimized versions of the same code evaluate to the same thing.

Unfortunately, this leads to a lot of code duplication. We can't
abstract over optimization like we do for the benchmarks since the
wrapper module would interfere with testing expanded code for
equality.
2010-07-16 12:22:14 -04:00
Vincent St-Amour
748e9e47ad The imaginary parts of inexact reals are ignored when doing complex
addition or subtraction.
2010-07-16 12:22:13 -04:00
Vincent St-Amour
025af5b815 Added coercions for floats with unboxed complex operations.
However, this generates superfluous operations involving their
imaginary part of 0.
2010-07-16 12:22:13 -04:00
Vincent St-Amour
fff71e6a1d Enabled optimization of complex conjugate at the top level of complex operations. 2010-07-16 12:22:12 -04:00
Vincent St-Amour
063211d922 Added unboxed complex conjugate. 2010-07-16 12:22:12 -04:00
Vincent St-Amour
0b0da84eba Added optimizations for iterating over vectors and strings. 2010-07-16 12:22:12 -04:00
Vincent St-Amour
1e550139aa Added dead code elimination. 2010-07-16 12:22:11 -04:00
Vincent St-Amour
4e6fc3154b Added a test for cross-module struct optimization. 2010-07-16 12:22:10 -04:00
Jay McCarthy
c9ccf6d48b Adding all hash prims per SK 2010-07-16 09:43:03 -06:00
Jay McCarthy
d17deb5fef Adding hash table functions to ASL 2010-07-15 15:45:54 -06:00
Mike Sperber
de94854243 Unbreak stepper tests.
... via a spectacularly ugly hack.
2010-07-14 14:07:13 +02:00
Matthew Flatt
90b586365f upgrade to latest libffi from git repo (between v3.0.9 and v3.0.10) 2010-07-13 21:12:59 -06:00
Ryan Culpepper
4693abf074 macro-stepper: re-enabled block test 2010-07-13 09:38:52 -06:00
Ryan Culpepper
e36c964a9a macro-stepper: updated tests 2010-07-13 09:22:52 -06:00
Ryan Culpepper
b8bf5c571a macro-stepper: add support for #%stratified-body 2010-07-13 09:22:51 -06:00