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