Commit Graph

3611 Commits

Author SHA1 Message Date
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
Matthew Flatt
87a4132b40 fix zo-marshal' for #f toplevel-map in lam' 2011-05-03 14:43:27 -06:00
Kevin Tew
811154cb08 Indent fix 2011-05-03 14:40:02 -06:00
Kevin Tew
46dc051931 Turn places build back on, provide place-break. 2011-05-03 14:01:30 -06:00
Matthew Flatt
1b14c6a38e fix mistakes uncovered by optimizer warnings 2011-05-03 06:57:48 -06:00
Eric Dobson
613e121783 Struct types now generate flat contracts when appropriate.
Closes PR 11686.
2011-05-03 08:15:37 -04:00
Ryan Culpepper
1bf95392d2 syntax/parse: added litset extension 2011-05-03 01:25:41 -06:00
Ryan Culpepper
e5e12ab01a syntax/parse: added define-syntax-class/specialize 2011-05-02 21:02:11 -06:00
Robby Findler
d6ef130fd2 cleaned up framework docs 2011-05-01 14:16:04 -05:00
Mike Sperber
d582dd55dd Fix bug in vector signatures. 2011-05-01 11:18:10 +02:00
Robby Findler
c8d476c76e adjust scribble's racketblock renderer so that #true and #false
don't turn into #t and #f.
2011-04-30 20:35:16 -05:00
Jay McCarthy
8708268992 Fixing problems with %is discovered by Casey 2011-04-30 12:02:41 -06:00
Asumu Takikawa
7eb26c5d26 Added test for get-pos/text method result. 2011-04-29 18:56:36 -04:00
Vincent St-Amour
4d24cbee60 Promote more literals at compile-time. 2011-04-29 17:16:39 -04:00
Vincent St-Amour
d9451ef4ab Run optimizer tests in a throw-away namespace to reduce memory usage. 2011-04-29 15:28:30 -04:00
Sam Tobin-Hochstadt
0d246de293 Remove obselete shell script 2011-04-28 18:23:53 -04:00
Vincent St-Amour
632e36f751 Add set types to TR.
Original patch by Eric Dobson.
2011-04-28 18:22:39 -04:00
Vincent St-Amour
fc531c4dbf Fix chicken output processing. 2011-04-28 16:19:59 -04:00
Vincent St-Amour
7cf64050f8 Make tabulation script more resilient to incorrect input. 2011-04-28 16:19:59 -04:00
Vincent St-Amour
e11582a522 Chicken can do scheme2 now. 2011-04-28 16:19:58 -04:00
Kevin Tew
64ba1f2fa4 [Places] rename place-channel.rktl -> place-channel.rkt 2011-04-27 22:35:05 -06:00
Matthew Flatt
0e229529c0 JIT-inline `procedure-arity-includes?' 2011-04-27 14:10:21 -06:00
Vincent St-Amour
99f4ae14ee Bigloo does not report time in centiseconds anymore (as of 3.6a). 2011-04-27 14:14:26 -04:00
Vincent St-Amour
31df4384e1 Chicken doesn't print GC time if the GC doesn't fire. 2011-04-27 14:14:26 -04:00
Kevin Tew
028421432d [Places] place-channel tests for large messages 2011-04-27 11:50:45 -06:00
Vincent St-Amour
6d56ddcc10 Chicken changed its timing output format. 2011-04-27 11:03:06 -04:00
Vincent St-Amour
d52c7f2d78 Typo. 2011-04-27 11:03:06 -04:00
Vincent St-Amour
33348795c9 cpstack -> cpstak 2011-04-27 11:03:06 -04:00
Vincent St-Amour
fd2d9ba0be Bigloo can't compile nucleic2. 2011-04-27 11:03:05 -04:00
Vincent St-Amour
9c9c87aa09 Remove file that was accidentally committed. 2011-04-27 11:03:05 -04:00
Robby Findler
06ed2045ae adjust check-docs so that the skipped exports are a parameter 2011-04-26 23:27:48 -05:00
Matthew Flatt
d28d42a46f fix validator bug (to allow flonum-consuming proc to be cleared)
Closes PR 11879
2011-04-26 19:21:14 -06:00
Stephen Chang
5d47e58de3 add Lazy Racket tests from Premiers cours de programmation avec Scheme (Roy) 2011-04-26 19:13:41 -04:00
Jay McCarthy
5f1b390f64 moving 2011-04-26 16:46:55 -06:00
Jay McCarthy
c9286ce725 Moving... 2011-04-26 16:33:01 -06:00
Eric Dobson
c221c07076 made ephemeron test correct 2011-04-26 15:35:22 -04:00
Eric Dobson
80fa8d3c97 Beginning of ephemeron patch 2011-04-26 15:35:22 -04:00
Vincent St-Amour
7800e417d2 Fix benchmarking for bigloo to work with its default options. 2011-04-26 15:35:22 -04:00
Robby Findler
626bef922e dont insist that names beginning with #% are documented 2011-04-26 11:30:12 -05:00
Ryan Culpepper
585dc9c0a3 sort names to avoid spurious changes 2011-04-25 22:51:51 -06:00
Ryan Culpepper
ee6fa14ec4 automatically filter out names from serializable structs 2011-04-25 20:24:36 -06:00
Ryan Culpepper
bf5248e3b5 syntax/parse: changed #:declare back to "magical" scoping 2011-04-25 20:24:35 -06:00
Robby Findler
7701f75fb0 adjusted test-docs-complete.rkt tests 2011-04-25 19:00:01 -05:00
Robby Findler
e7d0029aea added lots of new tests that our documentation is complete 2011-04-25 13:24:43 -05:00
Robby Findler
a373eac5d8 added docs-complete.rkt 2011-04-25 13:18:51 -05:00
Vincent St-Amour
7e491392e1 Remove file that was accidentally committed. 2011-04-25 09:30:23 -04:00
Matthew Flatt
2f8006aa6b add an optional argument to `assoc'
and implement `assoc', `assq', and `assv' in Racket
2011-04-24 07:55:33 -06:00
Matthew Flatt
f4303cbef8 faster JITted path to `equal?' 2011-04-24 07:55:33 -06:00
Matthew Flatt
f54d977de1 JIT-inline `eqv?' 2011-04-24 07:55:32 -06:00
Robby Findler
41497cec6a avoid printing stacktrace information when the exception is a exn:fail:user?.
closes PR 11874
2011-04-24 07:45:07 -05:00
John Clements
b228316a8a updates to history
merge to 5.1.1 release
2011-04-22 14:28:18 -07:00
Robby Findler
e8ce23cc9a adjust the test-engine test suite so it prints errors to stderr
and thus drdr will send email when test cases fail
2011-04-22 06:16:43 -05:00
Kevin Tew
34fd6c35dd Typo fix 2011-04-21 20:55:34 -06:00
Kevin Tew
b1cd60213f Test all allowed types in place messages 2011-04-21 06:14:27 -06:00
Matthew Flatt
e47c9a2f9d allow cyclic values over place channels 2011-04-20 07:21:10 -06:00
Kevin Tew
3358ec8d10 Place-channel path test cases 2011-04-20 00:01:28 -06:00
Matthew Flatt
1932a453a8 enable inlining of calls to `case-lambda' procedures
which includes calls to procedures with optional (but no keyword)
 arguments
2011-04-19 21:28:14 -06:00
Stephen Chang
718b9709bc fix struct constructor application in lazy racket 2011-04-19 01:21:19 -04:00
Matthew Flatt
e0d26d88b6 support exact nonnegative integers as sequences 2011-04-18 14:55:02 -06:00
Ryan Culpepper
fdede6f063 syntax/parse: added docs for litset #:at kw, relaxed restriction on arg 2011-04-15 14:47:29 -06:00
Matthew Flatt
5386206667 fix 'solid vs. 'opaque for mono on mono Closes PR 11839 2011-04-14 15:38:38 -06:00
Matthew Flatt
e734cd6127 fix `vector-map' error message
Closes PR 11828
2011-04-14 11:36:08 -06:00
Jay McCarthy
91d98aa0fa Fixing drdr discovered problem 2011-04-13 07:31:29 -06:00
Jay McCarthy
9c19571ecd Responding to Norman's request 2011-04-12 13:59:27 -06:00
Matthew Flatt
00ca86ffc6 `xref-binding->definition-tag': fix two-argument-list mode
Closes PR 11847
2011-04-12 15:55:22 -04:00
Ryan Culpepper
c0bd4e8dbc removed unused code from unstable/hash 2011-04-12 09:35:26 -06:00
Ryan Culpepper
033e060bf3 removed unstable/sexp-diff 2011-04-12 09:35:26 -06:00
Ryan Culpepper
459cce23be moved contents of unstable/set to racket/set 2011-04-12 09:35:26 -06:00
Ryan Culpepper
ccc70fca73 removed unused modules and code from unstable 2011-04-12 09:35:26 -06:00
Matthew Flatt
717a61840f racket/trace: fix for expr-style printing (i.e., default `print' mode) 2011-04-11 10:01:25 -06:00
Matthew Flatt
857003378a futures: more bug fixes, make `touch' safe
- bug fixes are related to allocation and runstack space
 - a `touch' within a future can complete before the `touch'ing
   future is itself `touch'ed
 - also make `length' safe (and JIT-inlined)
2011-04-09 17:12:24 -06:00
Stephen Chang
d8517af898 fix stepper rendering of non constructor-style lists
in stepper/private/reconstruct.rkt
- in recon-value, list case, add quasiquote rendering when constructor-style
  printing = #f
2011-04-08 20:41:36 -04:00
Stephen Chang
4ef7e1fae3 improve lazy stepper recon of unannotated fn apps
remove stepper/private/lazy-highlighting.rkt

in stepper/private/macro-unwind.rkt:
- in fall-through, add lazy-proc to lazy #%app special case

in stepper/private/model.rkt
- in send-step, dont use highlight-table, just match top called fn in mark-list
  instead

in tests/stepper/
- add lazy stepper tests for filter and fold
2011-04-08 20:41:35 -04:00
Ryan Culpepper
e0db3ed2e3 fixed tests for moved unstable libs 2011-04-08 10:30:32 -06:00
Matthew Flatt
2dcd76f609 fix arity reporting for chaperoned procedures and some primitives
such as `for-each'
2011-04-08 07:54:41 -06:00
Robby Findler
bb792c977d the tabber incorrectly counted tab chars as spaces when doing indentation;
this meant that if some line were supposed to be indented in the third
  column and you had two tabs and a space on that line, the indenter
  would leave it alone. Now, if it sees tabs in the line anywhere, it just
  decides that the line is not properly indented and re-indents it
  (always using spaces)

Also: started a tabber test suite
2011-04-08 07:48:17 -05:00
Stephen Chang
5238c338b6 fix stepper tests broken by lazy stepper 2011-04-07 15:11:40 -04:00
Ryan Culpepper
3e5a54c9e4 unstable/syntax: removed unused code and exports 2011-04-07 09:47:20 -06:00
Ryan Culpepper
73ab167522 created racket/syntax from parts of unstable/syntax 2011-04-07 09:47:20 -06:00
Stephen Chang
c8dd95b3cf fix user-position stepper-property bug in lazy cond stepper unwinding
in stepper/private/macro-unwind.rkt
 - in fall-through, add special #%app case for force

 in stepper/private/reconstruct.rkt
 - in recon-inner, in called app case, combine force case with other lazy fns

 in tests/stepper/
 - add test for lazy cond unwinding problem
2011-04-06 22:29:48 -04:00
Matthew Flatt
3bf0f800a7 futures: make `future' work in a future, overhaul logging, fix bugs 2011-04-06 17:40:44 -06:00
Matthew Flatt
91cdfe9a7a fix `in-vector' range checking 2011-04-06 17:40:44 -06:00
Matthew Flatt
584f74a22b remove printf 2011-04-06 17:40:43 -06:00
Stephen Chang
5d47c0b49b in stepper/private/reconstruct.rkt
- in recon-inner, in called app case
  - add other force fns to force case (!!, !list, !!list)
  - add other list fns
    (list?, length, list-ref, etc)

in stepper/private/lazy-highlighting.rkt
- add various list fns (list?, length, list-ref, etc)

in stepper/private/macro-unwind.rkt
- in unwind-cond, disable check of user-source and user-position

in tests/stepper/
- add test for various list fns
2011-04-06 18:44:36 -04:00
Stephen Chang
e41ba9c77b in lazy/lazy.rkt
- modify cond for stepper
- add support for multiple values in stepper
  - add inspector to multiple-values struct
  - hide split-values call in ~define-values

in tests/stepper/
- add tests for cond

in stepper/private/annotate.rkt
- in annotate/top-level, allow arbitrary top-level terms
  (no error in else case), otherwise exprs like let throws error

in stepper/private/
   reconstruct.rkt
   lazy-highlighting.rkt
- add support for eq? eqv? equal? lazy fns
2011-04-06 18:44:35 -04:00
Stephen Chang
c0f8f1cdb2 lazy stepper working with infinite lists
in stepper/private/marks.rkt
- in mark-binding-value, add exception handler to catch undefined vars, so
  display-mark in break works with recursive fns

in /tests/stepper/automatic-tests.rkt
                  through-tests.rkt
- add inf list example from icfp paper

in stepper/private/model.rkt
- refactor send-step to use cond instead of unless
- in send-step, when highlight-stack = null and last-rhs != null (and lhs !=
  last-rhs), send a step with lhs = last-rhs (previously skipped whenever
  highlight-stack = null)
  - basic filter example wasnt showing result without this
  - in icfp inf list example, this shows some intermediate forcing states
  - all other existing tests passed
2011-04-06 18:42:57 -04:00
Stephen Chang
348a20c0e5 in stepper/private/reconstruct.rkt
- in recon-inner, called app case, add first fn to list of special lazy fns
- in recon-value, add handling of running promises not found by
  recon-inner search
  - add optional so-far param to recon-value
- add unknown-promises-table and add case in recon-value to handle

in stepper/private/lazy-highlighting.rkt
- add (first,0) pair

in stepper/private/model.rkt
- modify lazy fn "skipping" (from lazy-highlighting.rkt) to use the skips
  only when last-rhs-exp = null; o.w. skipping is handled solely by
  examining last-rhs-exp

in tests/stepper/
- add take example from icfp paper
- add tests for unknown promises
2011-04-06 18:42:56 -04:00
Stephen Chang
d04d3fadc3 - add if tests for lazy stepper
in stepper/private/reconstruct.rkt
- in recon-inner, in called app case, add "take" to lazy fn case and fix to
  handle more than unary fns
2011-04-06 18:42:55 -04:00
Stephen Chang
49fd1fb0e0 in stepper/private/reconstruct.rkt
- in recon-value, add cases to handle list and cons
- in recon-inner, in app called case, add case to handle lazy list fns
  that contain unannotated !'s (ie cadr, cdddr, second, third, etc)

in stepper/private/model.rkt
- add highlight-stack
- in send-step, add various skip conditions when lhs = ellipses

add file stepper/private/lazy-highlighting.rkt

in tests/stepper/through-tests.rkt
   tests/stepper/automatic-tests.rkt
- add tests for list and cons fns
2011-04-06 18:42:54 -04:00
Stephen Chang
c41123ce6c existing lazy stepper tests passing
in tests/stepper/
test-engine.rkt
- add racket/private/promise to test-namespace using namespace-attach-module

automatic-tests.rkt
- add lazy tests

through-tests.rkt
- fix existing lazy tests lazy1, lazy2, lazy3

language-level-model.rkt
- fix lazy ll-model

in stepper/private/model-settings.rkt
- edit settings for lazy racket
2011-04-06 18:42:53 -04:00
Jay McCarthy
2ebcb2afd1 Fix drdr discovered problem 2011-04-06 16:00:54 -06:00
Jay McCarthy
af57e0419c Fixes PR11793.
It was very hard to figure out why � is invalid. Both the XML 1.0 and 1.1 specs say that a CharRef can be '&#' [0-9]+ ';' (sec 4.1), but there is a note on the side that it must also be a valid Char. The Char definition (sec 2.2) then lays out which characters are valid. (The 1.0 and 1.1 specs disagree though.) I've gone with the 1.1 definition.

I did not update the rest of the reader to disallow those characters in pcdata segments. If this hurts you or you morally disagree, submit another PR, please.
2011-04-06 11:14:25 -06:00
Stevie Strickland
6494bf863e Changing absent so that fields may be specified as well as methods. 2011-04-05 15:03:46 -04:00
Matthew Flatt
d359daa5f5 fix problem with chaperones and keywrd procedures
Closes PR 11833
2011-04-04 21:15:44 -06:00
Stevie Strickland
eafacc78a0 Adding `absent' to class contracts.
The `absent' clause lists public methods which must _not_ exist in the
contracted class.
2011-04-04 19:38:27 -04:00
Matthew Flatt
df2a875ff4 Scribble: simplify content that is conditioned on the render mode
including a new `scriblib/render-cond' library
2011-04-04 10:45:02 -06:00
Vincent St-Amour
9c3bee03e7 Fix bounded-fixnum opts to only fire with the right number of arguments. 2011-04-01 14:56:17 -04:00
Robby Findler
b926b17d7e fix the obvious bug wrt to procedures returned from make-keyword-procedure, but something is still wrong
related to PR 11833
2011-04-01 09:12:05 -05:00
Ryan Culpepper
896cb86dc4 syntax/parse: added phase options to define-literal-set 2011-04-01 00:57:04 -06:00
Ryan Culpepper
2e2bc02303 syntax/parse: fixed obsolete test cases 2011-04-01 00:54:29 -06:00
Robby Findler
d4e6f99b74 fix the algorithm for determining if a > that is typed in an
XML box ends an opening tag or not
  closes PR 11792
2011-03-31 17:26:03 -05:00
Kevin Tew
26d7768d3d Rename place-channel-recv place-channel-receive 2011-03-31 13:36:40 -06:00
Matthew Flatt
d00c8a6c71 Scribble: fixes for text output, especially inset nested flows 2011-03-30 19:53:32 -06:00
Robby Findler
5b879d0680 add missing require, fix opt/c test suite 2011-03-29 22:43:18 -05:00
Jay McCarthy
113e0aa184 Fix issue found by Eric Tanter 2011-03-29 09:24:36 -06:00
Matthew Flatt
0fda70b7ca fix region% problems
- fail gracefully with pre 1.4 Cairo
 - clip all drawing for an empty clipping region
 - disallow `is-empty?' on a region without a DC
   (since the test depends on the DC dimensions)
2011-03-28 15:15:57 -06:00
Matthew Flatt
6e1f35a319 fix WXME stream write-bytes' and write' method results 2011-03-27 16:30:44 -06:00
Robby Findler
4021f55c61 fixed up broken tests 2011-03-27 16:13:44 -05:00
Matthew Flatt
84d8bb3726 racket/sequence repairs
including addition of `sequence-generate*'
2011-03-27 10:02:11 -06:00
Robby Findler
f3b0a7454a improved the error messages for #:pre and #:post violations in ->i by including the bindings for the variables 2011-03-26 08:12:30 -05:00
Kevin Tew
00696cbfac variable-reference->module-source test 2011-03-25 15:04:02 -06:00
Robby Findler
288caacdfd added get-extend-start-position and get-extend-end-position
added the extend-position method
adjusted the wxme.rkt test suite so that it only prints when tests fail
2011-03-25 15:10:49 -05:00
Robby Findler
614ec41ab7 extended struct-copy so that you copy adjust fields from super structs 2011-03-25 08:47:27 -06:00
Matthew Flatt
60c4acb094 Scribble: clean up text-mode output
- line-flow paragraphs to fit in 72 columns
 - better indentation for itemizations
 - format tables with paragraphs and nested tables
2011-03-20 17:19:03 -06:00
Matthew Flatt
b2e338cc43 add missing autobib test 2011-03-20 15:38:51 -06:00
Matthew Flatt
ed96b89c45 JIT-inline `list?' 2011-03-20 09:51:32 -06:00
Matthew Flatt
e652546bf5 add streams to `racket'
- rename old `racket/stream' to `racket/sequence', and adjust
   to avoid stateful iterations
 - add a new `racket/stream' library with a `strean-cons' that is based
   on SRFI 41
 - adjust `for' and some sequence constructors like `in-range' to
   work more directly with streams
2011-03-18 19:05:23 -06:00
Kevin Tew
ae8b326522 [Places] added place-kill 2011-03-18 15:06:11 -06:00
Vincent St-Amour
3ebe9e78f9 Optimize add1 and sub1 on floats and fixnums. 2011-03-18 13:25:05 -04:00
Vincent St-Amour
1f0386b46c Improve TR's fixnum optimizations, using the new sub-fixnum types. 2011-03-18 10:25:22 -04:00
Vincent St-Amour
ee29d371c9 Updated TR's base type environment to use the new numeric types.
This ended up being an almost complete rewrite of the base environment.
Note: While the commit is dated Jan 27, the work was finished on Mar 2.
2011-03-18 10:25:21 -04:00
Vincent St-Amour
88fac43d55 Add an Exact-Number type. 2011-03-18 10:25:20 -04:00
Vincent St-Amour
80a9027f1e Take the meet of constraints earlier in the inference process.
This avoids constraint explosions in some cases, notably when working
with polydots and plain variable arity functions at the same time.

However, this also weakens inference a bit (breaks it for
unholy-terror and related tests), but not in a way that affects any
practical use cases that I know of.
2011-03-18 10:25:19 -04:00
Vincent St-Amour
f8528ac892 Change type of make-sequence to reflect changes to its implementation. 2011-03-17 18:43:57 -04:00
Vincent St-Amour
35161a0ba6 Fix expected optimization logs to reflect changes to for. 2011-03-17 13:10:19 -04:00
Vincent St-Amour
498ee4bea1 Fix TR's GUI test harness. 2011-03-17 13:10:19 -04:00
Vincent St-Amour
e9789c6697 Fix the 2-argument case of atan to conform to the documentation and
fix the documentation.
2011-03-17 13:10:19 -04:00
Matthew Flatt
ad8e959a98 tweak performance of `for' with non-inlined sequences 2011-03-16 17:02:53 -06:00
Matthew Flatt
c51daeb392 clean up sequence & generator tests 2011-03-16 16:21:26 -06:00
Matthew Flatt
4b39efdee4 fix `syntax-local-bind-syntaxes' argument checking
Closes PR 11808
2011-03-16 06:36:48 -06:00
Matthew Flatt
0efcf22ed4 racket/generator: clean-ups, including planned generalization
- syntax is now (generator formals body ...+)
 - add `generator?'
 - remove common run-time code from the `generator' macro expansion
 - doc fixes
 - start test suite
2011-03-15 20:14:01 -06:00
Matthew Flatt
b9c4bbae67 futures: limit parallelism via custodians
Closes PR 11682
2011-03-15 14:43:18 -06:00
Matthew Flatt
6a79ebdc97 adjust racket/gui test to cover no-border tab-panel% 2011-03-15 12:44:11 -06:00
Matthew Flatt
a2d968a5d2 fix `init-manual-scrollbars'
Closes PR 11781
2011-03-15 12:41:59 -06:00
Matthew Flatt
343b6fb008 Scribble: fix caching of hyperlinked identifiers 2011-03-15 11:09:10 -06:00
Eli Barzilay
09698c800c Improve the error message from scribble text rendering tests. 2011-03-15 11:45:40 -04:00
Matthew Flatt
449a634b2f add missing test for commit ae8705611b 2011-03-11 13:19:52 -06:00
Matthew Flatt
5afacbbb1c fix `pretty-print' confusion about quasiquote
Closes PR 11796
2011-03-11 08:02:30 -06:00
Matthew Flatt
a5a7076fe0 `file-or-directory-permissions': expose more info, add write mode
and add `user-read-bit', etc., to `racket/file'
2011-03-11 02:50:06 -06:00
Matthew Flatt
2b3827504b make test suite hit tab panels more 2011-03-11 02:50:05 -06:00
John Clements
ca88fdd7e5 oops rename in tests subdir too 2011-03-08 17:37:38 -08:00
Jay McCarthy
6b907d6b61 Fixing problem from Alok Thapa 2011-03-07 10:54:06 -07:00
Eli Barzilay
adf18c7dc0 Use runtime paths to make this work from a different directory 2011-03-03 12:25:19 -05:00
Eli Barzilay
22afec432c Use "127.0.0.1" instead of "localhost" which can be more fragile.
(It's possible to have issues with "localhost", for example when there's
something in a $LOCALDOMAIN environment variable, which made this test
fail on certain machines.)
2011-03-03 11:10:12 -05:00
Matthew Flatt
8ea32d675c add tests from Curtis Dutton 2011-03-03 07:24:15 -07:00
Matthew Flatt
fdef90e482 fix get-column-width' method of list-box%'
by changing the name to match the docs, plus some other
  bug fixes triggered by better testing
 Closes PR 11780
2011-02-28 19:12:34 -07:00
Matthew Flatt
733eab5805 fix 0-field prefab immutability flag
Closes PR 11777
2011-02-28 15:24:11 -07:00
Robby Findler
6f48aaeaa7 added a test case for this commit:
http://git.racket-lang.org/plt/commit/2482816d3d
2011-02-27 19:05:06 -06:00
Robby Findler
07a2ace943 added the #:pre/name and #:post/name keywords to ->i 2011-02-25 13:42:09 -06:00
Robby Findler
4b68377af1 Revert "started adding comments to the #:pre and #:post parts of ->i"
This reverts commit a27b7d5c61.

ack, sorry.
2011-02-25 09:44:34 -06:00
Robby Findler
a27b7d5c61 started adding comments to the #:pre and #:post parts of ->i 2011-02-25 09:42:23 -06:00
Robby Findler
2187773474 adjusted to change in the module language dialog 2011-02-25 09:42:16 -06:00
Matthew Flatt
93e1467b8b racket/gui: scrollbar support panels 2011-02-24 13:23:51 -07:00
Matthew Flatt
137d96c089 multi-column support in list-box% 2011-02-21 13:58:57 -07:00
Matthew Flatt
a01b7434b1 remove file that was added accidentally 2011-02-21 08:14:14 -07:00
Matthew Flatt
33d01a681e racket/system: fix problems with checking and empty-string arguments 2011-02-20 11:25:25 -07:00
Matthew Flatt
c8acebce8b fix race in subprocess test 2011-02-19 08:51:10 -07:00
Matthew Flatt
b4056373be generalizations to `subprocess' & company
- allow byte strings in more places
  - allow stderr spec to be 'stdout to redirect stderr to stdout
 Closes PR 11711
2011-02-19 08:30:34 -07:00
Robby Findler
783945f96b adjust the test coverage test suite to the changes in test coverage 2011-02-18 13:20:37 -06:00
Matthew Flatt
6041833ac5 fsemaphore cleanup
- abstract over JIT inlining of fsemaphore operations
 - fix problems with non-parallel fsemaphores
 - adjust tests so they don't assume too much concurrency
 - clarify fsemaphore vs. semaphore in the docs
2011-02-18 09:55:01 -07:00
James Swaine
ca5c061a71 Fix fsemaphore-try-wait? so the sema's count is decremented. Make fsemaphore-wait and other futures-related functions cooperate with the GC better. 2011-02-16 21:14:14 -06:00
Eli Barzilay
0801525931 Merge in the docs test into the rest of the scribble tests.
Also fixed it to scan all scrbl files in the docs directory, use
runtime-path, and change the rest to racket to get the quoted printout
right.
2011-02-16 15:26:15 -05:00
James Swaine
c6642de116 Added future semaphores (fsemaphores) 2011-02-15 23:27:03 -06:00
James Swaine
a98553f99b Merge branch 'master' of pltgit:plt 2011-02-15 22:58:08 -06:00
Robby Findler
8e94ce49e4 lift the restriction that the text:ports mixin
cannot do io from the eventspace handler thread
and add a test suite for text:ports
2011-02-15 18:10:02 -06:00
Robby Findler
62c961410c adjust the framework test suite so that queue-sexp-to-mred catches and propogates exceptions 2011-02-15 18:10:00 -06:00
Robby Findler
d5c753be88 adjusted printfs to make them a little narrower 2011-02-15 18:09:59 -06:00
John Clements
c1f76d418f bug fixed 2011-02-15 14:10:57 -08:00
Kevin Tew
156153f692 calling sync on a place-channel now returns the channel message just like standard racket channels 2011-02-15 13:53:01 -07:00
James Swaine
f9c12f9e58 Merge branch 'master' of pltgit:plt 2011-02-14 14:02:47 -06:00
Eli Barzilay
b090dde2fb Add a "BOOM" string to the timeout message, otherwise the failure is
hard to find.
2011-02-14 13:35:04 -05:00
Matthew Flatt
1a5f41fd71 Scribble: fix multi-line print output
Closes PR 11735
2011-02-14 07:32:21 -07:00
Robby Findler
ae67464670 adjust test suite to work on windows and to the new agreement about reproviding 2011-02-12 11:15:01 -06:00
Robby Findler
731a754e2b added tests that check on provide/contract when there are multiple files containing modules
related to PR 11724
  related to PR 11084
2011-02-11 19:49:50 -06:00
Matthew Flatt
0840430b21 clean up `define-syntax-rules'
by removing a redundant expression in an error message, adding
 tests, and documenting the fact that a syntax-error message can
 expose the pattern source to users
2011-02-11 09:59:42 -07:00
James Swaine
22d6ad7d03 Merge branch 'master' of pltgit:plt 2011-02-10 14:38:50 -06:00
Robby Findler
5cef41e08e adjust and/c so that it mentions the particular predicate (flat contract) that failed in the case that all its arguments are flat contracts 2011-02-10 11:32:40 -06:00
James Swaine
19dbee0405 Added semaphores for futures 2011-02-08 17:58:02 -06:00
James Swaine
0a73a9d5a1 Added semaphores for futures 2011-02-08 17:55:12 -06:00
Matthew Flatt
3c4807f032 fix coverage of `file/resource' tests 2011-02-05 08:33:27 -07:00
Matthew Flatt
18eb7c86b5 get-resource' and write-resource': support .ini files 2011-02-05 07:39:29 -07:00
Matthew Flatt
da6d4f3fba futures: fix `future' when given a non-JITted procedure
Merge to 5.1
2011-02-05 06:43:09 -07:00
David Van Horn
760a58b65d Fixes more spelling errors. 2011-02-04 19:44:13 -07:00
Matthew Flatt
337500552c `file/resource': improve compatibility
by generating "failure" results instead of exn:fail:unsupported
2011-02-04 14:25:09 -07:00
Matthew Flatt
b4ce4bbd2c add `file/resource' 2011-02-04 13:39:49 -07:00
David Van Horn
c9519fd113 Fixed various spelling errors. 2011-02-03 17:42:33 -05:00
Sam Tobin-Hochstadt
6099806a72 codeblock:
fix language regexp to accept numbers in #lang
2011-02-03 17:42:33 -05:00
John Clements
e4c4170d31 updated props in test dir 2011-02-03 14:17:18 -08:00
Eli Barzilay
2fe690b29e Try to kill the test thread after a minute, and exit after another minute. 2011-02-03 15:55:57 -05:00
John Clements
d2771cfb53 added big-bang-test.rkt 2011-02-03 10:27:47 -08:00
Robby Findler
0fce29f552 adjust the wxme reader so that it now creates image-snip%s when it finds image-snips in file
it used to create image% objects that were simple containers for the
  data in the file; the change _should_ be backwards compatibile;
  the only know incompatibility is that the get-filename method
  now returns a path instead of bytes (this is to match the
  image-snip% class)

   closes PR 1168

   please merge to the 5.1 release branch
2011-02-02 20:26:52 -06:00
Matthew Flatt
c2c6c79a15 fix `image-snip%' unmarshaling with filename
Merge to 5.1
2011-02-02 19:03:20 -07:00
Kevin Tew
2b045b991e bytes-join 2011-02-02 10:37:57 -07:00
Matthew Flatt
dfa36afa89 change `floating-point-bytes->real' to always produce a flonum 2011-01-31 19:52:50 -07:00
Matthew Flatt
3ef32d915b make inexacts `eqv?' only when precision is the same
plus some other small fixes
2011-01-31 19:16:33 -07:00
Matthew Flatt
1e09a544a6 adjust _float' and _double' FFI types to accept any inexact real
whether single-precision or double-precision
2011-01-31 18:04:05 -07:00
Vincent St-Amour
1b3052748e Add a case-> type-constructor as a synonym for case-lambda. 2011-01-31 16:39:20 -05:00
Vincent St-Amour
d65438c9ea Remove some legacy bindings. 2011-01-31 16:39:19 -05:00
Vincent St-Amour
e65b206e6e Add functions to convert back and forth between floating-point representations. 2011-01-31 16:39:17 -05:00
Vincent St-Amour
03ec1ec501 Add a single-flonum? predicate to test for single-precision floats. 2011-01-31 16:39:17 -05:00
Vincent St-Amour
c997ae139b Single-precision floats now print differently from their double-precision
counterparts.
2011-01-31 16:39:16 -05:00
Vincent St-Amour
d220e0a10b Add read syntax for single-precision float specials. 2011-01-31 16:39:16 -05:00
Vincent St-Amour
768bb63361 Fix optimizer to work with new types. 2011-01-31 16:39:14 -05:00
Vincent St-Amour
a0a54b231d Fix TR tests. 2011-01-31 16:39:14 -05:00
Vincent St-Amour
e56663c943 Add a predicate field to base types, which makes checking for
subtyping of value types easier.

However, this means that base types can't be marshaled as before,
since these predicates can't be marshaled. Instead, we now marshal
base types as identifiers that refer to their base type object.
2011-01-31 16:39:13 -05:00
Vincent St-Amour
d4c93cc12e TR's numeric tower is now built from unions of non-overlapping base types.
A lot of the work that was done by special-casing number types can now be
done by TR's handling of unions. This makes it easier to add more numeric
types to the tower and should make writing down types for numeric
primitives much less error-prone.

In addition, this commit adds several numeric types that will help get
tighter bounds on integer arithmetic, such as Index types. They will have
to be integrated to the base environment before they can be useful.
2011-01-31 16:39:13 -05:00
Matthew Flatt
dd5f0dfc80 fix `read-language' exn construction in an EOF case
Closes PR 11683
 Merge to 5.1
2011-01-31 06:49:13 -07:00
Eli Barzilay
6b5e09073a Reorganize, improve, and extend lazy tests. 2011-01-30 13:52:04 -05:00
Stephen Chang
08d99f4858 add test for lazy take bug fix -- invariant being incorrectly tested on unforced arg 2011-01-30 12:12:55 -05:00
Matthew Flatt
bc5ab1e031 fix problems with `read-language' error reporting 2011-01-30 07:47:46 -06:00
Stephen Chang
9924ac8060 add tests for lazy take 2011-01-27 17:04:58 -05:00
Vincent St-Amour
36ae5a9d50 Fix nightly running of TR tests. 2011-01-27 16:49:45 -05:00
Jay McCarthy
0714c7222c Fixing PR11661 2011-01-27 13:38:16 -07:00
Robby Findler
419ca0a36d adjust the test-engine test suite to use the new preferences location 2011-01-27 11:00:49 -06:00
Matthew Flatt
3448767f97 fix SRFI-14 test 2011-01-27 08:04:39 -07:00
Stephen Chang
f60957282f fix (take 0 nonemptylist) test in tests/lazy/langimpl.rkt 2011-01-26 18:14:34 -05:00
Stephen Chang
1ab22f7c2b add tests for push#22080 2011-01-26 17:26:44 -05:00
Vincent St-Amour
2bd0145603 Generalize hash table literals and subtypes of symbol.
Closes PR 11670.
2011-01-26 14:23:19 -05:00
Robby Findler
85c955fad6 tweak to move interactions fetch to the eventspace handler thread 2011-01-25 20:58:39 -06:00
Matthew Flatt
60335d9b23 fix `vector-copy' range checking for starting position 2011-01-25 15:46:52 -07:00
Stevie Strickland
a04b8d9899 Change instanceof/c to allow more contracts.
Now instanceof/c no longer checks explicitly for a class/c contract, so
or/c or and/c of class/c contracts succeed.
2011-01-25 14:07:30 -05:00
Robby Findler
45a635339e refactored to make testing check syntax renaming possible
made sure to remove duplicates from the list before doing renaming
  closes PR 11659
2011-01-21 22:27:18 -06:00
Matthew Flatt
b112fd76df add reparent' to subwindow<%>' 2011-01-21 20:21:21 -07:00
Jay McCarthy
aadb1b60bb Repenting of misunderstanding docs 2011-01-20 20:53:11 -07:00
Robby Findler
8c513f2b32 drracket tests: dont' insist on a stacktrace for break exceptions 2011-01-20 19:05:43 -06:00
Matthew Flatt
0c193a599a fix uncaught-exception-handler handling of non-escaping escape handler
and change the emergency error display handler to log and error
 Closes PR 11630
2011-01-20 14:01:33 -07:00
Kevin Tew
bc580ac125 call-with-file-lock/timeout 2011-01-20 13:33:02 -07:00
Jay McCarthy
87865cb1bd Fixing PR11649 2011-01-20 12:13:13 -07:00
John Clements
d675c7b12a updated PLAI (and test cases) to use racket language rather than scheme 2011-01-20 10:21:22 -08:00
Matthew Flatt
d5fdee7e06 add argument to `regexp-try-match' to match docs
Closes PR 6579 --- which was actually about the
 now next-to-last argument, but close enough
2011-01-17 15:18:05 -07:00
Robby Findler
70e3074baf found another place in the framework test suite where operations weren't happening on the eventspace handler thread 2011-01-17 15:35:35 -06:00
Robby Findler
ff800c997e make the example-test private file's work be behind a thunk (so more drdr friendly) 2011-01-17 15:04:00 -06:00
Matthew Flatt
21eee45a48 fix `read-language' when input has only comments 2011-01-16 19:01:45 -07:00
Matthew Flatt
113e49aa5b extend date->seconds' and find-seconds' to work with UTC
Closes PR 6137
2011-01-16 17:53:30 -07:00
Robby Findler
6c974f6c5f add missing require 2011-01-15 15:14:57 -06:00
Matthew Flatt
c2afc03b3b fix interaction of `continuation-mark-set-first' and prompts
including a documentation fix
2011-01-15 08:05:55 -07:00
Robby Findler
90b8400d50 make up a new temp dir instead of using C:\tmp 2011-01-15 06:44:42 -06:00
Mike Sperber
d2aa1c1138 Make test-engine tests work with new gracket. 2011-01-15 12:25:39 +01:00
Robby Findler
255cb84b87 add an example tool (that actually does something) to the docs and make a test suite that sets that tool up and runs it 2011-01-13 20:11:55 -06:00
Matthew Flatt
2097e944b7 fix `regexp-replace*' with procedure and #f matches 2011-01-13 11:01:46 -07:00
Robby Findler
b8459737f0 disable the trace of all of the messages in the framework tests 2011-01-12 17:32:26 -06:00
Carl Eastlund
803ac4a412 Added a sample package to test Planet scribblings. No automated tests yet.
Currently one just has to build the package and "eyeball" its documentation.
2011-01-11 18:00:40 -05:00
Matthew Flatt
6afffb329c add `svg-dc%' 2011-01-10 16:41:16 -07:00
Robby Findler
0411cddba5 added set/c and made sets print as set, seteq, or seteqv
closes PR 11454
2011-01-08 13:49:01 -06:00
Stevie Strickland
9ffb204682 Rename instanceof' to instanceof/c'. 2011-01-08 11:24:25 -05:00
Jay McCarthy
f2a9aebba5 Fixing contract formatting change 2011-01-07 19:53:00 -07:00
Stevie Strickland
92775c5e4e Add instanceof.
The instanceof contract combinator takes a class contract.  The resulting
contract protects objects using the external field and method contracts
in the class contract.
2011-01-07 18:22:24 -05:00
Robby Findler
bf031be73e what happened here? 2011-01-07 09:23:51 -06:00
Robby Findler
a32adbe7db make the framework test suite only modify gui objects on the eventspace handler thread 2011-01-07 06:39:27 -06:00
Robby Findler
31a629ff9c make provide/contract work properly when it is the only thing in a module body
closes PR 11596
2011-01-07 05:19:16 -06:00
Matthew Flatt
655f6045a2 fix shared' for #:auto' fields and constructors without `make-'
Closes PR 11588
 Closes PR 11591
2011-01-05 13:52:11 -07:00
Vincent St-Amour
b32287fa2d Fixed a bug with complex numbers made from floats of differing precision.
It used to be that constructing complex numbers from a float and a
double sometimes caused incorrect coercions.
2011-01-05 14:42:31 -05:00
Vincent St-Amour
cb723092e2 Fix portable fixnum size. 2011-01-05 14:42:31 -05:00
Robby Findler
51ad306af2 changed real-in to be an alias for between/c 2011-01-04 15:40:32 -06:00
Matthew Flatt
553723627c gradients: refine checking and docs to fit various conventions 2011-01-04 12:44:36 -07:00
Matthew Flatt
cd676fe81c another context-cache repair 2011-01-03 18:04:11 -07:00
Robby Findler
d1e0e7e254 fixed a few places in the repl-test where it was accessing gui stuff on a non-GUI thread 2011-01-03 17:41:08 -06:00
Robby Findler
fbe6e06957 give up on predicting the stack trace contents when yield is used 2011-01-03 07:15:03 -06:00
Robby Findler
6fb6fca73b make the test suite less picky about the contents of the stack (but not if it has content or not) 2011-01-02 19:53:39 -06:00
Matthew Flatt
241bb79cb0 allow a button% to have both a string and a bitmap for its label 2011-01-01 13:54:45 -07:00
Matthew Flatt
55693e090f add port-try-file-lock?' and port-file-unlock' 2010-12-31 14:40:27 -07:00
Robby Findler
699058d3a4 do a little bit better job keeping the manipulation of the gui state on the eventspace handler thread (in the syncheck test) 2010-12-31 15:29:23 -06:00
Eli Barzilay
3fb871586f Removed some exe bits that look redundant. 2010-12-31 15:59:39 -05:00
Robby Findler
e75d6b3fae replace one inherently racecondition-prone test with two others that approximate it 2010-12-31 10:50:27 -06:00
Robby Findler
6f9bcf0001 Rackety 2010-12-31 09:58:54 -06:00
Robby Findler
3dc5bbd0eb moved interactive panel test into its own file 2010-12-31 09:58:53 -06:00
Robby Findler
900d74714e fixed up panel:dragable so that it actually does the right thing now
adjusted the framework test suite so that it runs under windows
closes PR 10880
2010-12-31 09:58:51 -06:00
Matthew Flatt
a974dad8bf add alpha value to `color%' 2010-12-30 07:05:25 -07:00
Robby Findler
fb25dc9a42 adjusted drracket test suites so that it is (more) careful to keep all manipulation of GUI objects (text% objects seem to have been the important one) on the drracket eventspace main thread in an effort to make the test suites more stable. 2010-12-29 20:31:40 -06:00
Matthew Flatt
d3fd1ba013 add `set-padding' to text% 2010-12-29 13:42:58 -07:00
Sam Tobin-Hochstadt
2431f8f706 Fix TR tests for new contract error messages. 2010-12-29 13:46:57 -05:00
Matthew Flatt
3b032893c1 don't JIT-inline `values' in a single-value position 2010-12-28 17:47:03 -07:00
Matthew Flatt
5339be7594 make language test work with cgc 2010-12-28 10:52:17 -07:00
Matthew Flatt
0b1f1a4f4e add missing test case for premultiply-alpha fix 2010-12-27 19:34:59 -07:00
Matthew Flatt
705b11f2b8 a prompt-test fix like the previous one, but for post thunks 2010-12-27 15:24:33 -07:00
Robby Findler
6fe8643194 adjust teaching languages so that print works properly 2010-12-27 09:16:09 -06:00
Matthew Flatt
0d3fbb11fa supress a prompt test that doesn't apply to composable continuations 2010-12-26 16:21:28 -06:00
Matthew Flatt
e77917db8c fix another continuation bug discovered by Casey's random testing 2010-12-25 17:12:33 -06:00
Robby Findler
dd531dde9e check syntax does not call eval-compile-time-part-of-top-level when
checking programs in the module language.
closes PR 10908
2010-12-25 15:38:08 -06:00
Matthew Flatt
e7b52bf10f fix ffi handling of non-GCable pointers with offsets
Closes PR 11567
2010-12-25 09:34:07 -06:00
Robby Findler
bb9bd1b07a new attempt at contract violation error messages 2010-12-22 10:39:59 -06:00
Robby Findler
53509bef5f made module lang tests Windows friendly & Rackety 2010-12-20 08:43:28 -06:00
Sam Tobin-Hochstadt
491eeaa759 Move mred/private/wxme/style to racket/snip/private/style.
`racket/snip' now exports the style classes and the add,mult-color interfaces.
2010-12-19 22:56:15 -05:00
Mike Sperber
79600e15a6 Merge remote branch 'origin' 2010-12-19 11:21:41 +01:00
Mike Sperber
fa854f62fc Add vector signatures, and `vector-of' to the HtDP signature syntax. 2010-12-19 11:20:51 +01:00
Sam Tobin-Hochstadt
e9e45fdc2c Fix test require. 2010-12-18 00:10:25 -05:00
Matthew Flatt
4195cf3297 more fixes for weird draw-bitmap mask and mode combinations 2010-12-17 05:51:23 -07:00
Matthew Flatt
98f6415c59 another fix to drawing a color bitmap to a monochrome target 2010-12-17 05:29:50 -07:00
Matthew Flatt
8a10c3d3db fix use of color bitmap as mask when drawing after previous use 2010-12-16 21:02:11 -07:00
Matthew Flatt
f8ec47cdeb test for draw-bitmap repairs 2010-12-16 19:36:13 -07:00
Noel Welsh
8040100eff Merge branch 'master' of pltgit:plt into in-vector 2010-12-13 13:43:05 +00:00
Noel Welsh
cfa7b727f4 Fix some errors with in-vector and derived forms:
- Range checking was inconsistent between the sequence and macro forms
- The macro form could crash due to unsafe vector refs

Fixes involved refactoring the range checks so they are shared between both versions, and changing the contract slightly so start and stop are checked before the sequence runs. This allows unsafe vector refs and earlier error notifications at the cost making some valid programs (e.g. those using some condition to stop a comprehension hitting an invalid index) now be invalid. Only crazy people would rely on the old behaviour, so it isn't a problem in practice.
2010-12-13 13:38:35 +00:00
Matthew Flatt
965e8f96d1 fix get-char-height' and get-char-width' in dc<%>
Closes PR 11526
2010-12-10 20:37:51 -07:00
Matthew Flatt
2ae9f14f9e fix exn raised in refab-struct read errors
Closes PR 11530
2010-12-10 18:33:44 -07:00
Matthew Flatt
2b4f1a6908 extend `sync/timeout' to allow a tail-position fail thunk for polling 2010-12-10 18:06:21 -07:00
Carl Eastlund
5b18305e11 New test case for formatting bug in TR error messages. 2010-12-10 17:26:17 -05:00
Vincent St-Amour
09ffb70492 Update TR tests to reflect new contract error messages. 2010-12-10 16:59:13 -05:00
Vincent St-Amour
b9d67eea2f Allow running individual TR tests. 2010-12-10 16:59:12 -05:00
Vincent St-Amour
407d9b5f07 Error when running TR's test harness with no tests. 2010-12-10 13:44:47 -05:00
Stevie Strickland
7ab53d8ddb Fix unit contract tests due to new contract error format. 2010-12-10 13:06:56 -05:00
Robby Findler
94ebb1f317 update the mzlib contract test suite to the new error messages 2010-12-10 06:57:27 -06:00