Commit Graph

3611 Commits

Author SHA1 Message Date
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
Eli Barzilay
de4daa8d81 Add a hack to get the environment variables from the visual studio batch
file.

Also change the version number in the foreign tests to make them work.

Also fix getting the `test_gui' configuration.
2010-12-10 05:15:14 -05:00
Robby Findler
18dacad6c8 a first attempt at a rewording of the blame error messages to admit the possibility that the contract was wrong and also to claim that fixing the blamed module or the contract is all that is required
note that two test cases are failing, but only because they depend on the wording of the error messages; once that is set, I'll fix them.
2010-12-09 15:50:15 -06:00
Vincent St-Amour
365d272666 Test for errors in rhs. 2010-12-08 20:32:20 -05:00
Vincent St-Amour
81ef5f9418 Typecheck body of letrec using original types instead of potentially undefined type. 2010-12-08 20:32:20 -05:00
Vincent St-Amour
b045153177 letrec: consider outside bindings safe. 2010-12-08 20:32:19 -05:00
John Clements
368f345901 more stepper cleanup 2010-12-08 16:37:15 -08:00
John Clements
ff973b628b stepper refactoring and cleanup 2010-12-08 16:37:15 -08:00
Sam Tobin-Hochstadt
87eab889d6 Allow arbitrary filter specification in function types.
Allow (A -> B -> C) for curried function types.
2010-12-08 18:22:29 -05:00
Sam Tobin-Hochstadt
cb6d78698b Count pairs as having size 1, not 0, in minimizing edit distance. 2010-12-08 18:22:29 -05:00
Sam Tobin-Hochstadt
73dbf42e0e Better handling of `hash-*' functions, and hashes as sequences. 2010-12-08 18:22:29 -05:00
Vincent St-Amour
dc2df4882b Take into account potentially undefined values in letrec.
Closes PR11511.
2010-12-08 18:17:06 -05:00
Jay McCarthy
7ac2b8e316 Fixing tests 2010-12-08 14:08:54 -07:00
Jay McCarthy
5285dc6a16 Fixing tests 2010-12-08 14:08:54 -07:00
John Clements
5456e83ce4 massively faster due to reuse of namespace 2010-12-07 20:44:35 -08:00
John Clements
0d2a4b98db moving to another machine 2010-12-07 20:44:34 -08:00
John Clements
6f84a1c143 checkpointing progress toward applicable structs instead of hash table 2010-12-07 20:44:34 -08:00
Stevie Strickland
37349ca053 Allow uses of recursive-contract to specify the type of contract to create. 2010-12-07 18:30:20 -05:00
Jay McCarthy
d28dc2ae41 Revert "Adding dynamic/c and coerce/c"
This reverts commit cec308cc363a69d561097e978352488c996385ed.
2010-12-07 14:14:55 -07:00
Jay McCarthy
58494c125b Big bang coercion 2010-12-07 14:14:55 -07:00
Jay McCarthy
d7bd9ddc5f Adding compat0 test cases 2010-12-07 14:14:54 -07:00
Jay McCarthy
78a65f0662 More exhaustive test 2010-12-07 14:14:54 -07:00
Jay McCarthy
b5a39d03e4 Discussing compatibility 2010-12-07 14:14:54 -07:00
Jay McCarthy
d6d9f3ef8c Adding dynamic/c and coerce/c 2010-12-07 14:14:53 -07:00
Jay McCarthy
f5e9e0dad1 Fixing example 2010-12-07 14:14:52 -07:00
Jay McCarthy
4ca1dac51c write-xexpr test cases 2010-12-07 14:14:51 -07:00
Jay McCarthy
ca6c37bccf Adding header 2010-12-07 14:14:50 -07:00
Jay McCarthy
16f8b3a2a6 Adding test case and fixing un-terminated requests 2010-12-07 14:14:50 -07:00
Jay McCarthy
9b066d0f04 Correcting tests and examples 2010-12-07 14:14:49 -07:00
Jay McCarthy
419c184c94 Using response/xexpr 2010-12-07 14:14:49 -07:00
Jay McCarthy
05c9fcd412 First pass at Xexpr removal 2010-12-07 14:14:49 -07:00
Jay McCarthy
dc01f00afc New benchmarks 2010-12-07 14:14:49 -07:00
Stevie Strickland
5b8e5d6380 Extend struct/c to allow impersonator contracts for mutable fields.
Also, flat contracts for immutable fields are only evaluated at contract
wrapping time.
2010-12-07 14:29:07 -05:00
Stevie Strickland
10eb818f95 Conversion of struct/c to chaperones when appropriate. 2010-12-07 04:11:26 -05:00
Stevie Strickland
ebf01cc664 Converting case-> to chaperones and impersonators. 2010-12-06 16:12:49 -05:00
Matthew Flatt
fda0228631 fix broken inexact-reader configuration
Closes PR 11496
2010-12-04 16:22:17 -07:00
Matthew Flatt
116d88577e restore old behavior of _fixint' and _ufixint'
Closes PR 11492
2010-12-03 14:20:38 -07:00
Matthew Flatt
7ec0731cda don't use unsafe-string-ref' in for'
because `unsafe-string-ref' is for ASCII results, only
2010-12-03 11:10:11 -07:00
Noel Welsh
3b234010a0 Merge branch 'master' of pltgit:plt into in-vector 2010-12-03 14:36:48 +00:00
Noel Welsh
899e31e2ce Add tests for extended in-flvector and in-fxvector forms, refactoring common code to for-util.rkt 2010-12-03 14:33:38 +00:00
Noel Welsh
6e2d67e58a Fix typo 2010-12-03 12:18:04 +00:00
Noel Welsh
6761ae8618 Merge branch 'master' of pltgit:plt into in-vector 2010-12-03 10:27:34 +00:00
Stevie Strickland
778f0c9fc4 Actually turn on old object-info hack mentioned in 4e451a1. 2010-12-02 13:02:59 -05:00
Robby Findler
60d986b6df added a not-quite-right test case (drracket's test suites don't run well in gr2 yet) 2010-12-02 10:40:43 -06:00
Robby Findler
9501a9d7f8 adjustments to match gr2 2010-12-02 10:40:43 -06:00
Stevie Strickland
30afcd3bf5 Fix object=?.
Also commented out some tests of reflective operations on contracted objects.
I've added a note that describes how we might be able to fix this, if
we decide it's worth doing.
2010-12-01 15:11:25 -05:00
Stevie Strickland
2bd7760412 Conversion of object/c and object-contract to use impersonators. 2010-12-01 15:11:20 -05:00
Matthew Flatt
082515d6db fix namespace-anchor on non-module namespaces 2010-12-01 06:52:11 -07:00
Jon Rafkind
cf3b9680ba remove 0 arg set-union. add workaround to docs 2010-11-29 00:34:57 -07:00
Jon Rafkind
46244f81fc make set-union with 0 args return an empty set 2010-11-28 23:08:28 -07:00
Robby Findler
eabbb7dff2 improve the leak test a little by looking to see tabs get gc'd and so do the user's namespaces. 2010-11-28 19:26:38 -06:00
Matthew Flatt
0b19c6e798 fix bug in composable continuations
--- as deiscovered by Casey's random tester
2010-11-27 09:52:11 -07:00
Matthew Flatt
abcaa1775c add width' and height' arguments to post-script-dc% and pdf-dc%
and document the change that the PS bounding box is no longer
 inferred from drawing operations
2010-11-26 20:40:43 -07:00
Jay McCarthy
ee2b11630f Adding containers 2010-11-26 19:59:32 -05:00
Jay McCarthy
eee5c6b14a Adding response/port 2010-11-26 19:59:32 -05:00
Jay McCarthy
8320517192 Adding page 2010-11-26 19:59:32 -05:00
Matthew Flatt
2edadd6113 add pdf-dc%; make slideshow/pict depend on racket/draw, not racket/gui 2010-11-26 10:35:05 -07:00
Matthew Flatt
7da127227a gtk & cocoa: frame iconize repairs
In the "windowing.rktl" tests, for Gtk there are still race conditions
 between the program and the window manager. But for the first
 time ever, all platforms can pass the "windowing.rktl" test.
2010-11-26 08:33:59 -07:00
Matthew Flatt
1f61bbdc51 win32: frame size and iconize fixes 2010-11-26 08:10:58 -07:00
Robby Findler
4c9794acc6 drracket frames leak; add a test case 2010-11-26 08:51:37 -06:00
Matthew Flatt
8e8844641c fix `draw-bitmap-section-smooth' method of bitmap-dc<%> 2010-11-25 11:00:32 -07:00
Jay McCarthy
bd7ffb282f This code appears to have been copied from the other 2010-11-25 12:03:10 -05:00
Jay McCarthy
6474b519bb Fixes usage of argb-pixels 2010-11-25 12:01:44 -05:00
Jay McCarthy
e081af2aef This test relied on the old source location losing behavior of Rackunit 2010-11-25 11:38:43 -05:00
Matthew Flatt
347869fc9e fix some racket/gui tests and fix cocoa frame centering 2010-11-25 08:03:33 -07:00
Jay McCarthy
eecbc539c1 Fixing problem with previous "fix" to mutator-begin 2010-11-24 23:33:42 -05:00
Jay McCarthy
c9dcbb9edb Failing test 2010-11-24 23:33:42 -05:00
Jay McCarthy
b686cc84a9 Removing test because we reintroduced gensym 2010-11-24 23:33:42 -05:00
Matthew Flatt
1034c9be4e fix hashing on C pointers and missing tests 2010-11-24 15:44:18 -07:00
Jay McCarthy
e3153e6d21 Adding normalization display 2010-11-23 15:42:39 -07:00
Vincent St-Amour
102419f009 Fixed command-line options for gambit in benchmarks. 2010-11-19 12:10:42 -05:00
Jay McCarthy
24dbffaf3b Fixing problem found at Brown 2010-11-17 04:58:09 -07:00
Jon Rafkind
5f2d18c1f9 add in-queue 2010-11-16 23:09:19 -07:00
Jon Rafkind
27b32464c5 add test for sequence used as an expression 2010-11-16 23:09:19 -07:00
Matthew Flatt
1762a9a872 fix set!' of define-for-syntax'ed varable in `let-syntax' RHS 2010-11-16 20:18:11 -07:00
Jon Rafkind
7b24eaf58e rename queue-count to queue-length 2010-11-16 14:36:49 -07:00
Jon Rafkind
73be67942d add queue->list 2010-11-16 14:36:49 -07:00
Jon Rafkind
58188ad0c6 add queue-count 2010-11-15 22:32:08 -07:00
Matthew Flatt
c3e0a7af13 manual tests for refresh behavior 2010-11-12 20:47:07 -07:00
Matthew Flatt
42a4465fb0 fix bytecode compiler bugs in tracking known-flonum arguments 2010-11-12 15:28:57 -07:00
Eli Barzilay
5c1bd77b9e Add shuffle' to racket/list'. 2010-11-12 17:21:11 -05:00
Noel Welsh
2b799e2714 Merge branch 'master' of pltgit:plt 2010-11-12 10:30:08 +00:00
Robby Findler
5a9c469b0f added forall to go along with exists contracts 2010-11-11 14:39:43 -06:00
Matthew Flatt
27752c4695 plot bug fixes, including new images and a more forgiving image-equality test 2010-11-10 09:18:50 -07:00
Matthew Flatt
8d1827222c improve docs in 'interior allocation mode and improve 'interior-atomic 2010-11-10 09:18:31 -07:00
Matthew Flatt
a0a414465d fix problem with multiple captures of the same continuation
--- a bug introduced when enabling full continuations
     to escape past continuation barriers in v5.0.1
 Closes PR 11409
2010-11-09 16:48:23 -07:00
Matthew Flatt
0a179481a5 fix continuation capture in continuation transferred to a thread
where the prompt is the implicit one at the thread's creation
 Closes PR 11382
2010-11-08 18:06:07 -07:00
Matthew Flatt
90ac279096 add 'can-impersonate option to `make-struct-type-property' 2010-11-08 14:00:59 -07:00
Eli Barzilay
f5f1243b33 Move "fuzz.rkt" test to "tests/racket/stress". 2010-11-08 09:48:00 -05:00
Matthew Flatt
7f67b6569c v5.0.99.2: proxy' -> impersonator' 2010-11-08 06:23:16 -07:00
Matthew Flatt
bc2c95f564 fix cm test that used gl-info_rkt.zo (which is now gone) 2010-11-07 19:21:03 -07:00
Matthew Flatt
39596efef5 cocoa and gtk: fix combo% `on-popup' method 2010-11-05 15:54:56 -06:00
Matthew Flatt
e033d9edf1 cocoa & gtk: fix some test failures 2010-11-05 15:54:54 -06:00
Matthew Flatt
4f2e59e7a6 some fixes prompted by the test suite 2010-11-05 15:54:48 -06:00
Matthew Flatt
d2275f4179 level-2 finalization from ffi/unsafe and late-weak references 2010-11-05 15:54:47 -06:00
Matthew Flatt
73dd8cc697 fix gc handling of ephemeron chains 2010-11-05 15:54:47 -06:00
Matthew Flatt
ca64c25cf9 cocoa: control fonts 2010-11-05 15:54:43 -06:00
Matthew Flatt
16b34c236a gtk: misc fixes 2010-11-05 15:54:41 -06:00
Matthew Flatt
b4fafc1888 cocoa: printer-dc% 2010-11-05 15:54:38 -06:00
Matthew Flatt
70b26a5885 win32: more menus and widgets 2010-11-05 15:54:32 -06:00
Matthew Flatt
604afc1803 win32 widgets, mouse events, and cursors 2010-11-05 15:54:32 -06:00
Matthew Flatt
5809bc7790 fix slider value display and 'plain option 2010-11-05 15:54:27 -06:00
Matthew Flatt
c3fa1f01e8 cocoa mouse event and cursor fixes 2010-11-05 15:54:22 -06:00
Matthew Flatt
a747047145 special-option-key for cocoa 2010-11-05 15:54:19 -06:00
Matthew Flatt
a7a629e45b showkey as module 2010-11-05 15:54:18 -06:00
Matthew Flatt
40c1c2ffef cocoa cursors 2010-11-05 15:54:16 -06:00
Matthew Flatt
b020c2f858 fix gtk widget size info for sizing and positioning 2010-11-05 15:54:12 -06:00
Matthew Flatt
cc55bd7e93 restore auto-scroll canvases; fix text-rotation bug 2010-11-05 15:54:12 -06:00
Matthew Flatt
b69d4322af fix canvas dc size reporting 2010-11-05 15:54:10 -06:00
Matthew Flatt
c42d95216e auto-scroll canvases and frame status lines 2010-11-05 15:54:10 -06:00
Matthew Flatt
626ceef11b misc repairs 2010-11-05 15:54:06 -06:00
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