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