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