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