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