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