Commit Graph

2231 Commits

Author SHA1 Message Date
Stevie Strickland
8e3a67936e Add `unregister-type'
Add type regions.
Untyped lexical vars not an internal error.

svn: r18374
2010-02-27 01:26:16 +00:00
Stevie Strickland
7dacfaea85 Add with-contract for expression positions.
svn: r18372
2010-02-27 01:05:03 +00:00
Jay McCarthy
1f4ab946e1 Removing reliance on SXML and adding little xpath evaluator for xexprs
svn: r18366
2010-02-26 21:16:56 +00:00
Sam Tobin-Hochstadt
21d0dfcf09 use new schemeunit
svn: r18361
2010-02-26 20:44:30 +00:00
Jay McCarthy
dd31aa9512 Switching many uses of old Schemeunit to new
svn: r18360
2010-02-26 20:39:56 +00:00
Matthew Flatt
02583a1a08 ad hoc car/cdr optimizations
svn: r18354
2010-02-26 19:14:56 +00:00
Sam Tobin-Hochstadt
2bda690d2d remove error printf for drdr
svn: r18349
2010-02-26 14:37:51 +00:00
Robby Findler
ca8459a3a0 changed to schemeunit so the tests can be in a module and so we dont see random values in the printed output
svn: r18341
2010-02-25 21:32:48 +00:00
Carl Eastlund
8b93f081bc Renamed make-set{,eq,eqv} to set{,eq,eqv} for uniformity with list, vector, etc.
svn: r18338
2010-02-25 19:46:36 +00:00
Jay McCarthy
24d76d0e82 Allowing any module path in mutators for the collector
svn: r18336
2010-02-25 16:24:36 +00:00
Robby Findler
3955ef69b4 try to debug new drdr failure
svn: r18329
2010-02-24 21:46:53 +00:00
Robby Findler
df049ea35e normalized the output so drdr won't say that this is changing
svn: r18326
2010-02-24 19:46:24 +00:00
Stevie Strickland
9f9e83b671 Yes, I know that we get different results for how it prints out. This needs
to be fixed.  But for now, I'm commenting this out with a note to myself to
get this fixed.

svn: r18322
2010-02-24 17:46:51 +00:00
Robby Findler
50a6a585b1 fixed some repl-printing related bugs that would make 'write' sensitive to pretty-print's parameters in drscheme's repl
svn: r18321
2010-02-24 17:35:09 +00:00
Stevie Strickland
232db39f54 Sync up to trunk to prepare for the grand merge.
svn: r18319
2010-02-24 16:38:32 +00:00
Jay McCarthy
652cdcf902 Changing bindings parser on requests to promises.
svn: r18310
2010-02-23 22:29:22 +00:00
Sam Tobin-Hochstadt
1616e27b4b fix comment, add test
svn: r18307
2010-02-23 21:36:53 +00:00
Jay McCarthy
a4dfbfb1d6 Fixing mutator-cond
svn: r18305
2010-02-23 19:43:36 +00:00
Stevie Strickland
8cc22294ff Sync up to trunk.
svn: r18291
2010-02-23 07:25:24 +00:00
Stevie Strickland
6326731a15 Fix the tests that break due to semantic changes in object-contract.
svn: r18290
2010-02-23 04:34:05 +00:00
Stevie Strickland
d820493feb First cut of converting object-contract to share a common base that
object/c will also use.

svn: r18274
2010-02-22 21:55:32 +00:00
Ryan Culpepper
d4b0f917df rewrote schemeunit test
svn: r18271
2010-02-22 21:12:11 +00:00
Sam Tobin-Hochstadt
e417da3598 Switch to the current version of schemeunit.
svn: r18263
2010-02-22 17:58:18 +00:00
Jay McCarthy
1eea5163cc Supporting byte-regexps and boxes in tester. Improving speed/allocation of parser and noting places where we could do better. Updating struct contracts in code and docs.
svn: r18262
2010-02-22 15:47:57 +00:00
Carl Eastlund
1d6111c532 Renamed simple-contract and simple-flat-contract to make-contract and make-flat-contract.
svn: r18259
2010-02-22 02:51:16 +00:00
Stevie Strickland
6f3b676fa5 Syncing up.
svn: r18249
2010-02-21 03:37:21 +00:00
Stevie Strickland
a0769da5ea Add the contract shorthands for -> and ->* to use for methods where we don't
care about properties of this.

svn: r18248
2010-02-21 02:54:06 +00:00
Ryan Culpepper
3b630af6f9 schemeunit:
moved internal modules to schemeunit/private
  moved tests to tests/schemeunig
  added schemeunit/gui

drscheme:
  fixed bug in show-backtrace-window

svn: r18243
2010-02-21 01:03:42 +00:00
Stevie Strickland
ffa34e1f7d Add augride, which is like augment but enables the contract writer to give
subclasses an idea of whether a method can be augmented (augment) or whether
a method augmentation can be overridden (augride).

svn: r18240
2010-02-21 00:17:42 +00:00
Stevie Strickland
f72ca7bb1b Now inherit works (and tests!)
svn: r18237
2010-02-20 22:54:11 +00:00
Stevie Strickland
370792b881 Refactoring done, and I think that's actually cleaned up things a bit. Now
to handle inherit.

svn: r18236
2010-02-20 22:44:53 +00:00
Stevie Strickland
a4d6252d16 Start inherit contracts (which are useful for mixins). Tests, plus parsing.
svn: r18232
2010-02-20 21:28:20 +00:00
Stevie Strickland
a169105ed0 Sync up to trunk, because keeping up to date is the right thing to do (and
hopefully it'll get rid of the issues in tests/future/future.ss).

svn: r18228
2010-02-20 19:36:15 +00:00
Robby Findler
92717e0f0b used stderr when tests fail
svn: r18226
2010-02-20 17:16:54 +00:00
Matthew Flatt
457a2da675 try again to fix tests
svn: r18223
2010-02-20 13:39:51 +00:00
Matthew Flatt
e38e8d88e0 basic set library
svn: r18222
2010-02-20 13:00:48 +00:00
Matthew Flatt
d2bdc2eca8 fix test problems
svn: r18221
2010-02-20 12:23:01 +00:00
Stevie Strickland
c59805ab9e Syncing up to trunk before I go to bed, so setup-plt can run while I
sleep.

svn: r18220
2010-02-20 10:59:49 +00:00
Stevie Strickland
c5c22e117c Tests to make sure the first-order parts of method contracts are attributed
to the correct source upon failure.

svn: r18219
2010-02-20 10:46:54 +00:00
Stevie Strickland
cd4aa4c6f6 Forgot about the no-contract forms, so needed to add tests for those, also.
svn: r18218
2010-02-20 10:40:50 +00:00
Stevie Strickland
7830d55b42 Okay, that does it for augment, which means I'm done with coding. Now just
documentation and benchmarking, then this can go on trunk.

svn: r18217
2010-02-20 10:09:37 +00:00
Stevie Strickland
37e1cd2e2c A few more tests to make sure we have everything right for augment once
implemented.

svn: r18216
2010-02-20 09:48:38 +00:00
Stevie Strickland
67d47e0a1d Fixes in override ctcs and test suite. I thought I ran it, so I find it
weird that I found these on a subsequent run when adding some quick augment
tests to start the next batch.  (Oh, those are included also.)

svn: r18215
2010-02-20 09:40:41 +00:00
Stevie Strickland
b5e2d5f93e Okay, now override contracts are done, so only augments remain.
svn: r18214
2010-02-20 09:30:40 +00:00
Stevie Strickland
3b125d58fc Tests for internal dynamic dispatch (Java-only)
svn: r18209
2010-02-20 08:08:17 +00:00
Stevie Strickland
aaf9a5aeac Apply the inherit-field projections appropriately.
svn: r18204
2010-02-20 04:18:49 +00:00
Stevie Strickland
fcee6788d7 Parsing and first order checks for internal field access contracts.
svn: r18203
2010-02-20 04:02:59 +00:00
Stevie Strickland
d87794a8d2 External field contracts FTW!
svn: r18202
2010-02-20 03:52:47 +00:00
Stevie Strickland
95438db40f Add set-field!. Because it's useful, because we have get-field, so why
not it, and because it's an easy way to later test external field contracts.

svn: r18199
2010-02-19 23:55:39 +00:00
Sam Tobin-Hochstadt
33c18b3985 providing static struct information to untyped code works
svn: r18198
2010-02-19 23:27:06 +00:00
Jay McCarthy
7d1a739df5 Adding comments and specs to parser.
Clarifying comments in marshaller. Supporting small numbers, small symbols, small marshalleds, small (proper) lists, small svectors, all-from-module long form

Improving inequality detector in tester: regexps and uninterned symbols

Correcting doc contract

svn: r18194
2010-02-19 19:47:15 +00:00
Robby Findler
7aa6ea4c76 PR 10645
svn: r18193
2010-02-19 19:43:14 +00:00
James Swaine
9170687148 moved futures random tests into /collects/tests/future
svn: r18192
2010-02-19 19:26:55 +00:00
James Swaine
cb12a81daf added test notes to futures test suite
svn: r18191
2010-02-19 19:21:03 +00:00
James Swaine
a7332c09a2 moved futures tests to collects/tests/future directory
svn: r18190
2010-02-19 19:17:59 +00:00
Stevie Strickland
e9264b1fac Syncing up before class.
svn merge ^/trunk

svn: r18188
2010-02-19 16:43:03 +00:00
Robby Findler
47b5892c92 probable fix to problems with this file (make sure find-relative-path's first argument is a directory)
svn: r18187
2010-02-19 15:29:54 +00:00
Stevie Strickland
55d39b0035 It was a good thing I decided to add some super/inner mixed examples here,
because it pointed out a bug in my implementation where we weren't getting
the right version of the super method (which gets the projection).

svn: r18180
2010-02-19 04:40:10 +00:00
Stevie Strickland
5cc68fdd0f In some ways, I'm still trying to decide exactly what some of these forms mean.
For example, if we're in the java part of a beta-java chain, can we still add
an inner contract?  If so, it should affect each java-style overriding method
until we reach the next beta-style augmenting method.

It can just be confusing, because one might thing that inner in a
contract => needs an augmenting method in the subclass, super => needs
an overriding method in the subclass.  The latter is true, since only
the next immediate method can reach the super class's implementation,
but inner jumps to the next augmenting method, so the former isn't
necessarily true.

svn: r18179
2010-02-19 04:27:44 +00:00
Stevie Strickland
b59955bc01 Ah, that'd be the issue. THE TESTS WERE WRONG. All's well, and I've even
added a couple more tests to make sure we apply the projections in the right
order.

svn: r18176
2010-02-19 00:34:27 +00:00
Stevie Strickland
7fe863e792 Inner tests! They almost all fail! BUT WE SHALL CHANGE THAT.
svn: r18175
2010-02-19 00:09:47 +00:00
Stevie Strickland
6fcb61cc11 Add some test cases for super.
svn: r18172
2010-02-18 23:34:35 +00:00
Stevie Strickland
f8d5234148 Simplify the test case. Also, spam both my and Sam's inboxes.
svn: r18171
2010-02-18 23:24:15 +00:00
Stevie Strickland
38522f0dca A tricky case, this.
svn: r18170
2010-02-18 23:22:51 +00:00
Stevie Strickland
cc52bcd197 Start throwing in higher-order checks.
svn: r18168
2010-02-18 23:09:42 +00:00
Stevie Strickland
8d9eda1459 I think that finishes all the first order tests.
svn: r18167
2010-02-18 22:53:35 +00:00
Stevie Strickland
b15dd9e689 You'll gasp, you'll cheer, you'll scream! MORE TESTS.
svn: r18165
2010-02-18 22:44:58 +00:00
Stevie Strickland
ce04db35a0 Rename tests to be more specific, start inner tests, fix introduced bug.
svn: r18164
2010-02-18 22:27:34 +00:00
Stevie Strickland
690b82da14 Check lots of crazy special cases for super contracts.
svn: r18163
2010-02-18 22:16:29 +00:00
Stevie Strickland
7abafad8b1 Tests of super contracts. Failing test here, because we're not checking for
non-final public methods when adding super (or later, override) contracts.
We should check for that in both cases, as the contract suggests that the
method in question is overrideable.

svn: r18160
2010-02-18 21:54:27 +00:00
Stevie Strickland
0971d37b70 Add first order checks for public fields and methods for both class/c
and object/c.

svn: r18159
2010-02-18 21:50:55 +00:00
Stevie Strickland
6e462ecb38 Forgot to quote the test expressions, which showed up once I added a
testcase for a blame error.

svn: r18158
2010-02-18 21:42:20 +00:00
Stevie Strickland
eeb2b52731 Start the MASSIVE TESTSUITE.
svn: r18157
2010-02-18 21:37:55 +00:00
Jay McCarthy
fb73b168d1 Adding testing for zo parser/marshaller/decompiler
svn: r18155
2010-02-18 21:07:05 +00:00
Robby Findler
8424dea37b avoid doing mac os x-specific tests unless under mac os x
svn: r18154
2010-02-18 20:36:03 +00:00
Kevin Tew
202c056c53 tests file.ss use random port
svn: r18151
2010-02-18 18:54:53 +00:00
Jay McCarthy
25dbc6a418 Test cleanup
svn: r18150
2010-02-18 16:14:41 +00:00
Robby Findler
b51f3e0940 more debugging information printed
svn: r18148
2010-02-18 13:54:39 +00:00
Robby Findler
66e329c21b updated pconvert to use the new arguments to make-hash and friends
svn: r18128
2010-02-17 21:20:39 +00:00
Robby Findler
5763cc0104 added some debugging printouts to try to find out how to make this work in drdr
svn: r18123
2010-02-17 20:38:07 +00:00
Matthew Flatt
91d725fbb9 add optional initialization argument to make-hash (and variants)
svn: r18120
2010-02-17 17:44:29 +00:00
Jay McCarthy
9a468dd9d0 Fixing error message re Robby and rearranging tests a little
svn: r18117
2010-02-17 16:04:13 +00:00
Robby Findler
445ec5c145 refactored the mutator test case generator to make testing more tractable and added some tests (and fixed a bug)
svn: r18113
2010-02-17 15:37:27 +00:00
Robby Findler
6565005468 checking this in to be able to show it to Jay
svn: r18111
2010-02-17 15:14:49 +00:00
Stevie Strickland
35afebaea3 Change object-contract to use find-method/who (already exported for Typed
Scheme) to look for the appropriate method to wrap, which makes Robby's
object-contracts appropriately translucent during contract wrapping.

svn: r18102
2010-02-16 19:58:07 +00:00
Jay McCarthy
520b4feedc Adding PLAI software to the core
svn: r18101
2010-02-16 18:56:44 +00:00
Robby Findler
b73613460b added a test that saves and reopens a file in the teaching languages
svn: r18088
2010-02-15 18:39:15 +00:00
Sam Tobin-Hochstadt
90c8fcff11 Generate proper contracts for polymorphic struct types.
Document `Nothing'.

svn: r18074
2010-02-12 21:57:58 +00:00
Matthew Flatt
38a0f6d89a fix the actual result value for unboxed flmin and flmax
svn: r18045
2010-02-11 04:00:18 +00:00
Sam Tobin-Hochstadt
8bf908d106 More restrictive handling of contracts for the `Any' type.
svn: r18043
2010-02-10 20:45:50 +00:00
Robby Findler
8f5d2e1864 apparently the 1 pixel circle under linux draws in exactly one pixel when not in smoothed mode, which broke a test case; so that's changed now
svn: r18037
2010-02-10 17:40:21 +00:00
Robby Findler
4e92d54b28 possible fix to module lang test suite
svn: r18020
2010-02-08 19:44:01 +00:00
Sam Tobin-Hochstadt
55a48ca594 Fix a number of bugs reported by eli
svn: r18017
2010-02-08 18:17:15 +00:00
Robby Findler
49702f8f59 moved temp files into the temp directory
svn: r18015
2010-02-08 17:40:46 +00:00
Carl Eastlund
fe40d3e888 Merged changes from trunk.
svn: r18007
2010-02-06 19:23:24 +00:00
Robby Findler
75a60162b0 another attempt to get the drscheme gui test suite in shape to be run by drdr
svn: r18004
2010-02-06 17:13:49 +00:00
Eli Barzilay
3a08648dab Added a `running' state, which is visible only from inside the
generator.  (Also considered making it an error when the generator is
called while it is running, but that doesn't allow (yield (yield X))
fun.)

svn: r17982
2010-02-05 03:22:09 +00:00
Eli Barzilay
f1dcf49d38 Added `generator-state', implemented using a local state (which also
simplifies the code that raises an error from the last change).

svn: r17980
2010-02-05 03:22:04 +00:00
Eli Barzilay
505034ea26 The generator function can now be used to send values to the generator.
For example,

  (define g (generator (yield (yield (yield 1)))))
  (list (g) (g 2) (g 3) (g 4) (g) (g))

evaluates to '(1 2 3 4 4 4).  This is something that Python does (as a
generator.send method), which might be useful for using generators as
co-routines, and it is actually easy to implement since sending values
is exactly what we get when the generator call is actually calling the
saved continuation.  So most of the change is dealing with the
technicalities of throwing an error when the generator is called with
some arguments, when that's done after it's terminated (at the stage
where it's repeating the last value for ever).

A few tests added for this.

svn: r17979
2010-02-05 03:22:01 +00:00
Eli Barzilay
c88a5a6856 A bunch of additional typos
svn: r17976
2010-02-05 03:21:52 +00:00
Carl Eastlund
2e3ea3d0de Merged latest changes from the trunk.
svn: r17974
2010-02-05 02:41:24 +00:00
Matthew Flatt
3812f8ca72 improve inling to support ((let (....) (lambda ....)) arg ...) patterns; allow nested 'let's for local flonum binding (which fixes a problem where unsafe flonum operations could end up much slower than safe ones)
svn: r17972
2010-02-05 00:16:06 +00:00
Sam Tobin-Hochstadt
318833f422 Add supertypes for mutable types, so that predicates work correctly.
svn: r17971
2010-02-04 23:39:15 +00:00
Robby Findler
1b39d29640 clean up temporary files
svn: r17970
2010-02-04 20:31:51 +00:00
Carl Eastlund
d7a7409fe0 Merged changes from the trunk.
svn: r17954
2010-02-03 15:15:11 +00:00
Robby Findler
76f41c2a1c fixed a bug and added some race-condition insurance
svn: r17946
2010-02-02 21:32:20 +00:00
Robby Findler
e74e46d9ca drdr-ized the rest of the drscheme test suite
svn: r17945
2010-02-02 21:06:07 +00:00
Ryan Culpepper
8d2f32efed syntax/parse:
fixed bug: splicing-stxclass immediately within ellipses
  added tests, docs for local-conventions

svn: r17944
2010-02-02 19:48:08 +00:00
Robby Findler
319a4a7ef0 fixed a bug revealed by drdr (but stil cant make this bad case happen on my machine, frustratingly
svn: r17942
2010-02-02 18:01:55 +00:00
Robby Findler
102b03311e made the check syntax tests more drdr friendly
svn: r17928
2010-02-01 17:46:17 +00:00
Robby Findler
6f4c164793 improved the implementation of error in the teaching languages, added test casees
svn: r17923
2010-02-01 15:39:33 +00:00
Robby Findler
bf67e34e87 fixed up module language test suite for new language dialog, plus misc cleanups based on last release
svn: r17922
2010-02-01 15:18:28 +00:00
Carl Eastlund
2e0cb8226e Replaced every "langauge" (note swapped vowels) with "language".
svn: r17918
2010-02-01 01:41:51 +00:00
Matthew Flatt
5433c57504 wrap each top-level form in a module with a prompt
svn: r17917
2010-01-31 17:04:55 +00:00
Matthew Flatt
e8c97a5102 more readable mandelbrot-unsafe; minor benchmark harness fixes
svn: r17915
2010-01-31 14:58:26 +00:00
Carl Eastlund
1d4cdbeb45 Exports from scheme/contract/private/blame: removed constructor; fixed confusing selector names.
svn: r17909
2010-01-31 03:03:30 +00:00
Carl Eastlund
2772ffccba Restored legacy functions for custom contracts.
svn: r17900
2010-01-30 21:14:27 +00:00
Robby Findler
aa67a279ab added a little more information
svn: r17899
2010-01-30 21:02:26 +00:00
Robby Findler
32faba2964 added more debugging information to try to figure out if the 'window with no button' error is a bug or not
svn: r17898
2010-01-30 20:53:03 +00:00
Carl Eastlund
2513e7d6e0 Merged changes from the trunk.
svn: r17892
2010-01-30 04:59:20 +00:00
James Swaine
68c197d02f added basic test suite for the parallel futures module
svn: r17890
2010-01-29 21:44:46 +00:00
Matthew Flatt
d620177619 fix benchmark readme
svn: r17885
2010-01-29 17:49:25 +00:00
Matthew Flatt
42e68c8ff1 even more benchmark scaffolding
svn: r17884
2010-01-29 16:33:15 +00:00
Matthew Flatt
a09e671f34 allow radio-box% to have no selected buttons
svn: r17865
2010-01-28 17:51:30 +00:00
Matthew Flatt
2c192f5297 support inlining of procedures with rest args
svn: r17860
2010-01-28 01:31:37 +00:00
Matthew Flatt
980d48ce19 fix karen and psyntax benchmarks
svn: r17850
2010-01-27 12:56:51 +00:00
Matthew Flatt
f07c19b268 update benchmark harness
svn: r17840
2010-01-26 20:17:44 +00:00
John Clements
bef818b2be test changes, goes in release 4.2.4
svn: r17806
2010-01-24 19:31:29 +00:00
John Clements
100fe8520d took bad require out
svn: r17803
2010-01-24 18:21:56 +00:00
Matthew Flatt
4ce8dfa7da fix problems with having a struct implement both prop:evt and prop:procedure; merge to 4.2.4
svn: r17802
2010-01-24 15:30:16 +00:00
John Clements
25cd6766fa test files, for release if it matters..
svn: r17795
2010-01-24 07:23:59 +00:00
John Clements
a18447e970 srfi 19 tests, not for release
svn: r17794
2010-01-24 07:23:09 +00:00
Carl Eastlund
bd9b6e9e97 Made unit contract test regular expressions more robust.
svn: r17782
2010-01-23 18:31:32 +00:00
Carl Eastlund
88aba214c9 Merged changes from trunk. No conflicts.
svn: r17780
2010-01-23 17:44:27 +00:00
Robby Findler
5dfed472c7 svn: r17777 2010-01-23 16:03:50 +00:00
Ryan Culpepper
ef138249f4 syntax/parse: fixed bugs (thanks samth)
Please propagate this to the release branch.

svn: r17756
2010-01-19 21:03:51 +00:00
Carl Eastlund
e5c74e7a25 Fixed bug I introduced when changing make-proj-contract to simple-contract.
svn: r17744
2010-01-19 07:33:03 +00:00
Carl Eastlund
35a716d5d3 Fixed blame detection regexp.
svn: r17742
2010-01-19 07:14:17 +00:00
Carl Eastlund
9d7ca20eeb Replaced guilty-party with equivalent.
svn: r17739
2010-01-19 06:29:15 +00:00
Carl Eastlund
888045dcf9 Replaced make-proj-contract with simple-contract in tests.
svn: r17737
2010-01-19 05:31:18 +00:00
Sam Tobin-Hochstadt
3fc133a0b8 Correct typing for `or'.
svn: r17665
2010-01-15 19:39:46 +00:00
Sam Tobin-Hochstadt
5e1b355e32 Syntax for predicates with non-empty paths
svn: r17660
2010-01-14 23:17:56 +00:00
Sam Tobin-Hochstadt
d69c96cf06 update to the final version of this code
svn: r17658
2010-01-14 22:09:31 +00:00
Sam Tobin-Hochstadt
104adf9c62 Types for the other `check-expect'-style forms.
svn: r17657
2010-01-14 21:24:47 +00:00
Sam Tobin-Hochstadt
1ab2a41092 Paths for first' and rest'
svn: r17654
2010-01-14 20:00:37 +00:00
Sam Tobin-Hochstadt
33592b4f6c Typecheck `or' correctly.
svn: r17653
2010-01-14 19:53:28 +00:00
Ryan Culpepper
97135f112c macro-debugger: fixed bug re local-expansion and macro hiding
svn: r17642
2010-01-13 23:41:23 +00:00
Jay McCarthy
a1d7945958 PR10689
svn: r17621
2010-01-12 21:51:35 +00:00
Matthew Flatt
331c6d2f5f fix bignum expt (PR 10690); also fixed a doc typo
svn: r17614
2010-01-12 02:16:12 +00:00
Sam Tobin-Hochstadt
4fa4f6fd2d Propogate expected type through `reverse'.
New loop special case for `for/list'.

svn: r17609
2010-01-11 20:48:26 +00:00
Eli Barzilay
55d4ac93b3 another case of this
svn: r17602
2010-01-11 06:38:19 +00:00
Eli Barzilay
384cadd579 express expected result of []s using []s, so these tests make sense for readers that use []s in a different way too
svn: r17601
2010-01-11 06:31:01 +00:00
Eli Barzilay
6b7c199326 * Some reorganization of code
* Rename `make-repeated-sequence-generator' -> `sequence->repeated-generator'
* Several tests for `sequence->generator'

svn: r17586
2010-01-09 04:45:39 +00:00
Stevie Strickland
ab3dd78cb1 Removing scheme/load I used for editing this.
svn: r17580
2010-01-08 21:04:21 +00:00
Stevie Strickland
1c47ecc346 Just fixing the unit testcases so that they don't error.
svn: r17579
2010-01-08 21:03:17 +00:00
Sam Tobin-Hochstadt
f13453e889 `andmap' now works as a predicate in Typed Scheme
svn: r17575
2010-01-08 19:05:58 +00:00
Stevie Strickland
ea20ee160f Add a dummy lambda expansion to signature compilation to ensure that the
expressions only refer to locally-bound names or names that are part of the
signature itself.

svn: r17573
2010-01-08 18:47:51 +00:00
Stevie Strickland
9e0f2a3c5f Identifiers in signature contracts don't use whatever prefixing or such may be
in play in the body of a unit, so we need to rename the "external" version to
the "internal" version.  This fixes PR 10246.

svn: r17571
2010-01-08 17:20:19 +00:00
Sam Tobin-Hochstadt
05a0e722f9 use of member, memq, memv as predicates working properly
svn: r17568
2010-01-08 15:55:32 +00:00
Sam Tobin-Hochstadt
0d46fcb48a Create new `typed/test-engine' collection.
Remove dependence of `typed-scheme' on `test-engine'.

svn: r17567
2010-01-08 15:38:17 +00:00
Jon Rafkind
b497787b89 one more name change
svn: r17556
2010-01-07 22:31:29 +00:00
Jon Rafkind
f5ea84cbb4 add infinite-generator macro. change name infinite to make-repeat-generator
svn: r17555
2010-01-07 22:28:37 +00:00
Sam Tobin-Hochstadt
b7f9899439 `member' can now be used a predicate.
svn: r17554
2010-01-07 22:11:54 +00:00
Jon Rafkind
9fc7b4c445 add infinite generator test
svn: r17553
2010-01-07 21:54:07 +00:00
Sam Tobin-Hochstadt
eaad64d612 Better error message for functions that don't have the same arity as
the expected.
Add some tests for errors.

svn: r17551
2010-01-07 21:45:57 +00:00
Sam Tobin-Hochstadt
08457d35e3 Improve error messages in the simple case.
Change 'typecheck to Type Checker in error messages.

svn: r17542
2010-01-07 19:41:42 +00:00
Matthew Flatt
41261c6047 fill out fl and fx operations; repair fixnum-overflow bug in quotient
svn: r17524
2010-01-07 03:30:33 +00:00
Sam Tobin-Hochstadt
a8e1c829c2 Fix `type-apply'
Fix duplicate filters

svn: r17522
2010-01-07 00:55:51 +00:00
Sam Tobin-Hochstadt
c7cb124c95 Put dynamic behavior of `check-expect' into functions.
Give those functions types.

svn: r17519
2010-01-06 23:03:08 +00:00
Robby Findler
68efb4008a normalized the results of procedure-arity
svn: r17504
2010-01-06 19:34:29 +00:00
Sam Tobin-Hochstadt
ac9d2d8d9e Support prefab struct literals in quasipatterns.
Fixes PR 10050.

svn: r17495
2010-01-06 16:41:17 +00:00
Matthew Flatt
6151119d5e JIT tweak for flonum comparisons; better bytecode-compiler transformations for expressions used as branch tests
svn: r17486
2010-01-05 20:24:59 +00:00
Matthew Flatt
3902824d88 adjust inlining algorithm again; better JIT compilation of nested branches; better JIT handling of literal floating-point numbers
svn: r17484
2010-01-05 15:13:03 +00:00
Sam Tobin-Hochstadt
b802c7dfd0 Fix PR 10140
svn: r17473
2010-01-04 01:12:58 +00:00
Matthew Flatt
38d7e8fea2 built-in fixnum ops; bug fix related to misuse of flonum ops; questionable attempt to improve inlining algorithm
svn: r17461
2010-01-02 16:33:28 +00:00
Robby Findler
e821a0c461 separated 2htdp/universe from htdp/image, allowing either htdp/image or 2htdp/image to be used
svn: r17430
2009-12-29 23:59:39 +00:00
Robby Findler
37613b0bde fixed use of random for 64 bit machines
svn: r17401
2009-12-25 20:03:32 +00:00
Matthew Flatt
b18ba4a4e5 fix use of 'random' in fixnum test suite
svn: r17397
2009-12-25 13:14:57 +00:00
Robby Findler
195d608fe5 added scheme/fixnum
svn: r17391
2009-12-23 15:41:40 +00:00
Matthew Flatt
f332afc3dd fix leak created by transitive thread-resume
svn: r17370
2009-12-20 15:39:55 +00:00
Eli Barzilay
942798196f removed old copy of md5 tests from mzscheme tests
svn: r17368
2009-12-20 09:58:19 +00:00
Eli Barzilay
bf2992ff97 md5 tests in the file tests
svn: r17367
2009-12-20 09:57:26 +00:00
Eli Barzilay
4cd3d34b43 require md5 from file/md5
svn: r17364
2009-12-20 09:46:09 +00:00
Stevie Strickland
fb85388288 Add this%, which is the class counterpart of the object reference "this".
svn: r17359
2009-12-19 20:56:40 +00:00
Matthew Flatt
0a1e4e6e83 fix an allocation in bytecode compiler; add flvector equality
svn: r17353
2009-12-18 21:53:02 +00:00
Matthew Flatt
9192f073d0 compiler flonum tweaks
svn: r17349
2009-12-18 16:59:05 +00:00
Matthew Flatt
fdd7122994 scheme/flonum (v4.2.3.8)
svn: r17348
2009-12-18 15:40:00 +00:00
Matthew Flatt
bc47db42e4 unboxed known-flonum loop accumulators
svn: r17338
2009-12-17 15:58:29 +00:00
Sam Tobin-Hochstadt
142bbf19fd fix to account for changes to common/cmdline.ss
svn: r17337
2009-12-17 15:46:48 +00:00
Sam Tobin-Hochstadt
9e6e9696af Use flsqrt.
Eliminate pointless micro-optimizations.

svn: r17330
2009-12-16 16:24:54 +00:00
Matthew Flatt
45e84ca087 unboxing of let-bound flonums (v4.2.3.6)
svn: r17328
2009-12-16 13:30:40 +00:00
Sam Tobin-Hochstadt
b9fd34b925 Fix type of string->number
svn: r17313
2009-12-15 22:03:10 +00:00
Sam Tobin-Hochstadt
a8851a8a3d Fix psyntax to work in DrDr
svn: r17311
2009-12-15 18:29:59 +00:00
Sam Tobin-Hochstadt
3687048bbb use flvectors in spectralnorm-unsafe
Add input info for spectralnorm-unsafe

svn: r17306
2009-12-15 16:26:47 +00:00
Matthew Flatt
d13057d8c4 add psyntax as a kind of realistic-program benchmark (I'd like to have more)
svn: r17298
2009-12-14 23:51:09 +00:00
Sam Tobin-Hochstadt
3331d907ea Add unsafe version of nbody shootout benchmark.
svn: r17288
2009-12-13 19:30:22 +00:00
Sam Tobin-Hochstadt
22903bffcd Fix handling of logical props in `tc-if'.
New numeric hierarchy.
Quoted lists and vectors now use the expected type, and quoted lists have (List a b c) type.  
Fix some contracts.
More general handling of polymorphic function application.
Use `make-provide/contract-transformer' to generate correct blame for typed provided identifiers.
Add mutable pairs. 
Use `raise-syntax-error' for better error messages in mzscheme.
Use `match*' instead of `list'
Some fixes to appease the contract checking.
Catch-all printing cases.
Use names in Base contract generation.
Types for lots of new primitives.
Move numeric primitives to their own file.
Move indexing primites to their own abstracted file.
Better error message from `define-struct:'
Fix 'insert-large-letters.ss' for new Number hierarchy.
Add `typed/scheme' and `typed/scheme/base', which use new number hierarcy types, stricter indexing types.

svn: r17284
2009-12-13 04:45:17 +00:00
Matthew Flatt
5772fa0a9f bytecode-compiler changes to help enable flonum unboxing
svn: r17283
2009-12-13 04:39:46 +00:00
Sam Tobin-Hochstadt
3e497704aa fix unit tests
svn: r17269
2009-12-11 17:01:55 +00:00
Sam Tobin-Hochstadt
791ec55787 fixes
svn: r17265
2009-12-11 00:25:59 +00:00
Sam Tobin-Hochstadt
314270113a sync to trunk
svn: r17263
2009-12-10 18:35:02 +00:00
Sam Tobin-Hochstadt
c8c9bd0556 Add `in-bytes-lines'
svn: r17261
2009-12-10 17:01:53 +00:00
Sam Tobin-Hochstadt
5767e23d87 checkpoint
svn: r17258
2009-12-10 15:32:17 +00:00
Sam Tobin-Hochstadt
cd0a94d465 sync to trunk
svn: r17249
2009-12-09 19:44:12 +00:00
Robby Findler
a429c3ff8d first attempt at randomly clicking on drscheme into drdr
svn: r17243
2009-12-08 22:24:38 +00:00
Sam Tobin-Hochstadt
be77cee733 Fix parsing of quoted lists in types to produce list types.
svn: r17237
2009-12-07 15:50:51 +00:00
Sam Tobin-Hochstadt
70f085713d PR 10647
svn: r17235
2009-12-07 13:55:36 +00:00
Eli Barzilay
f83bf42796 use "anonymous-module" for modules without a source file
svn: r17228
2009-12-06 10:46:05 +00:00
Eli Barzilay
6a88daecd8 fixed test for binding of delay that moved again
svn: r17223
2009-12-06 05:15:20 +00:00
Eli Barzilay
259350a7e1 untabity and minor formatting
svn: r17222
2009-12-06 05:06:40 +00:00
Robby Findler
ada899f158 added more examples and tests for order-of-magnitude
svn: r17212
2009-12-05 20:38:38 +00:00
Robby Findler
1a8bca736f PR 10581
svn: r17210
2009-12-05 18:35:25 +00:00
Eli Barzilay
b5114a14c1 formatting
svn: r17192
2009-12-05 02:23:46 +00:00
Stevie Strickland
5650cb9647 Fix the module-reader tests.
svn: r17183
2009-12-04 20:18:14 +00:00
Matthew Flatt
c73b587e98 inline flvector-length
svn: r17178
2009-12-03 18:04:02 +00:00
Matthew Flatt
4eef1b3cee flvectors
svn: r17177
2009-12-03 16:42:32 +00:00
Robby Findler
61da010d5f PR 10636
svn: r17163
2009-12-02 17:09:07 +00:00
Carl Eastlund
3b9d254fda Merged changes from branches/cce/plt+contract-tests:
- Added tests for make-proj-contract
- Added tests for opt/c, specifically to track 'positive-position?' blame
- Fixed 'positive-position?' in opt/c (bug 10629)

svn: r17105
2009-11-30 04:40:51 +00:00
John Clements
b2bcfdbec9 updated srfi 19 tests from dave gurnell
svn: r17084
2009-11-28 02:31:17 +00:00
Matthew Flatt
d3ff146643 fix JIT bug in multi-arity arithmetic inlining
svn: r17076
2009-11-27 03:35:36 +00:00
Matthew Flatt
f03ab78c40 another syntax hack to fix 'scheme/package'; other test corrections
svn: r17075
2009-11-27 02:12:27 +00:00
Matthew Flatt
61dd4ca0b9 add unsafe-f64vector-{ref,set!} and improve JIT to inline arithmetic ops with more than 2 arguments
svn: r17068
2009-11-26 15:07:16 +00:00
Carl Eastlund
edae542b58 unstable module for source location manipulation
svn: r17065
2009-11-25 20:49:29 +00:00
Sam Tobin-Hochstadt
e3bafbe298 checkpoint
svn: r17054
2009-11-25 02:30:41 +00:00
Sam Tobin-Hochstadt
1efedeb758 sync branch to trunk
svn: r17046
2009-11-24 18:47:48 +00:00
Sam Tobin-Hochstadt
29c4a84183 checkpoint
svn: r17045
2009-11-24 17:10:44 +00:00
Matthew Flatt
79817a2087 slimy pthread_getspecifc()-inlining trick to practically eliminate the overhead of futures support under OS X
svn: r16952
2009-11-22 02:34:40 +00:00
Eli Barzilay
28f5070d5e undo accidental commenting
svn: r16951
2009-11-22 02:22:19 +00:00
Sam Tobin-Hochstadt
5ea3e28078 check that we get correct blame
svn: r16950
2009-11-21 23:24:02 +00:00
Robby Findler
9454a471d3 added some vector-copy tests
svn: r16940
2009-11-21 13:21:30 +00:00
Sam Tobin-Hochstadt
750c971d07 checkpoint
svn: r16931
2009-11-21 00:11:37 +00:00
Sam Tobin-Hochstadt
6497745560 Skip backup files in tests.
More specific numeric types.
More subtyping relationships.

svn: r16922
2009-11-20 15:20:23 +00:00
Sam Tobin-Hochstadt
485c8a3567 checkpoint
svn: r16915
2009-11-20 05:20:23 +00:00
Sam Tobin-Hochstadt
1da2c7cd7d many fixes
svn: r16913
2009-11-20 03:56:57 +00:00
Eli Barzilay
9473d1809f test all orders fo lengths <= 3
svn: r16900
2009-11-19 22:05:02 +00:00
Robby Findler
8d96441673 PR 10591
svn: r16897
2009-11-19 20:29:36 +00:00
Eli Barzilay
0c0945bb08 properly disable TS tests on cgc
svn: r16842
2009-11-17 20:02:07 +00:00
Sam Tobin-Hochstadt
bbd2ff852e disable typed scheme tests on cgc
svn: r16839
2009-11-17 19:45:41 +00:00
Eli Barzilay
10183e8d19 fix moved test files, set svn:eol-style
svn: r16815
2009-11-16 17:35:23 +00:00
Robby Findler
4f5479e912 moved 2htdp/image test back into 2htdp collection (yeah!)
svn: r16812
2009-11-16 16:45:25 +00:00
Robby Findler
77e1707aa7 renamed README to README.ss
svn: r16809
2009-11-16 12:00:03 +00:00
Eli Barzilay
b1f5b0652c new kinds of promises
svn: r16807
2009-11-16 11:06:47 +00:00
Eli Barzilay
7917fd89fb moved srfi-19 tests to tests/srfi/19
svn: r16799
2009-11-16 07:30:49 +00:00
Eli Barzilay
de17c5f7da moved planet test to tests/planet
svn: r16798
2009-11-16 07:23:20 +00:00
Eli Barzilay
77d9f02c90 work around name problem in promise, avoid keeping the original exn in syntax errors in eli-tester
svn: r16796
2009-11-16 04:34:13 +00:00
Sam Tobin-Hochstadt
25f9bcfe03 Add types for with-output-to-string, open-output-nowhere
Fix time.ss test not to print

svn: r16790
2009-11-15 22:38:30 +00:00
Eli Barzilay
cecac1c6c1 delay is now defined as delay*
svn: r16780
2009-11-15 10:47:59 +00:00
Eli Barzilay
d66d5f7759 move promise tests to tests/lazy
svn: r16773
2009-11-15 00:36:24 +00:00
Matthew Flatt
2f0f249299 skip setup-plt compilation in 2htdp tests
svn: r16771
2009-11-14 15:54:33 +00:00
Ryan Culpepper
32e38ca0e4 macro-stepper:
do compile-time evals when expanding
    fixes: (begin macro-def macro-use) pattern
  updated tests for lifts change

svn: r16762
2009-11-13 21:41:01 +00:00
Sam Tobin-Hochstadt
a29172bc51 Add command line flags to disable things that are problematic for DrDr.
svn: r16751
2009-11-13 18:16:07 +00:00
Sam Tobin-Hochstadt
77bd8bac39 Fix for modern redex
svn: r16737
2009-11-13 00:13:09 +00:00
Robby Findler
676df4b338 added polygon
svn: r16735
2009-11-12 20:21:33 +00:00
Robby Findler
cacb4bd515 added above and above/places
svn: r16730
2009-11-12 16:25:02 +00:00
Robby Findler
88217a8aae added 'add-line', changed the way images in examples are saved
svn: r16727
2009-11-12 14:56:47 +00:00
Robby Findler
7411fdfa57 added 'line'
svn: r16699
2009-11-11 21:29:59 +00:00
Sam Tobin-Hochstadt
ccbb55ec11 fix execution of 'auto.ss'
svn: r16697
2009-11-11 18:41:25 +00:00
Sam Tobin-Hochstadt
70fa8fb2c4 Fix run to dynamic-require relative to the shootout directory.
svn: r16696
2009-11-11 18:30:18 +00:00
Matthew Flatt
8845e870cb test repairs for DrDr
svn: r16694
2009-11-11 14:01:18 +00:00
Jon Rafkind
0080e2b673 test
svn: r16683
2009-11-11 02:25:11 +00:00
Jon Rafkind
507e8db8e7 test
svn: r16682
2009-11-11 02:22:38 +00:00
Robby Findler
1a8d681ed2 added a bunch more polygons
svn: r16681
2009-11-11 02:20:18 +00:00
Matthew Flatt
1d64270f5d some corrections/removals of old tests
svn: r16680
2009-11-11 01:34:09 +00:00
Robby Findler
4e3b1b4c26 fixed some bad behavior (that I never completely understood) by changing the interpretation of the base images as drawing their centers at (0,0) instead of drawing their upper left corners at (0,0)
svn: r16676
2009-11-10 23:36:32 +00:00
Sam Tobin-Hochstadt
36bceaa463 disable compilation of test files to avoid drdr race condition
svn: r16663
2009-11-10 20:10:47 +00:00
Jon Rafkind
9c0c1ec591 comment out most honu macro stuff
svn: r16660
2009-11-10 19:18:06 +00:00
Sam Tobin-Hochstadt
8dff3dca74 use load-relative
svn: r16656
2009-11-10 18:28:20 +00:00
Sam Tobin-Hochstadt
7a77367040 Fix drdr props.
Fix the ttt tests (which I don't think have been run in years).
Fix the lists shootout benchmark to use mpairs.
Fix the regexmatch shootout benchmark, although it still needs input.
Require a current version of ssax, so that it compiles.
Fix finding the collections path.

svn: r16654
2009-11-10 15:41:32 +00:00
Robby Findler
add9374636 added failing test
svn: r16652
2009-11-10 14:08:28 +00:00
Sam Tobin-Hochstadt
f29e01029c Fix drdr props for more files.
Fix requires in TS tests.

svn: r16635
2009-11-09 17:06:12 +00:00
Eli Barzilay
44d88cee6b newlines at EOFs
svn: r16630
2009-11-09 03:49:50 +00:00
Robby Findler
3e51bc7199 fixed up text
svn: r16625
2009-11-08 23:29:19 +00:00
Ryan Culpepper
94917e2447 unstable:
added draft guidelines
  fixed some svn properties

svn: r16619
2009-11-08 10:55:57 +00:00
Robby Findler
faf055c858 added circle and star-polygon
svn: r16617
2009-11-08 00:19:53 +00:00
Robby Findler
667e967085 added order-of-magnitude from Jos Koot and some tests for other scheme/math stuff
svn: r16607
2009-11-07 14:26:39 +00:00
Sam Tobin-Hochstadt
2f6c19b75a fix section name
svn: r16601
2009-11-07 06:55:45 +00:00
Eli Barzilay
69e90b7ef3 #:key argument to remove-duplicates
svn: r16587
2009-11-06 22:32:53 +00:00
Robby Findler
3159a06389 (hopefully) sorted out polygons; added a few other polygon-based primitives
svn: r16570
2009-11-06 14:34:25 +00:00
Robby Findler
693ba9b9e8 allow overlaying of 0x0 images
svn: r16558
2009-11-05 14:55:07 +00:00
Mike Sperber
2a8e5d64be Make the DeinProgramm / DMdA one-of' / case' contracts use beginner-equal?.
svn: r16556
2009-11-05 10:10:17 +00:00
Ryan Culpepper
0feac0f636 syntax/parse:
tweaked error selection algorithm
  added tests

svn: r16533
2009-11-04 00:31:24 +00:00
Sam Tobin-Hochstadt
149e695a55 New `scheme/vector' library.
svn: r16511
2009-11-03 04:16:48 +00:00
Kevin Tew
9611f21611 Allow concurrent testing
svn: r16506
2009-11-02 23:24:08 +00:00
Matthew Flatt
70560372b7 unsafe-{string,bytes}-{ref,set,length}
svn: r16490
2009-10-31 02:19:57 +00:00
Sam Tobin-Hochstadt
40bc4cb77a remove dead examples
svn: r16480
2009-10-30 16:27:55 +00:00
Sam Tobin-Hochstadt
93a504a817 Add failing test to xfail.
Remove old dead code.

svn: r16479
2009-10-30 16:26:48 +00:00
Robby Findler
d48bc1f1c1 undid my broken commit
svn: r16478
2009-10-30 16:11:34 +00:00
Jay McCarthy
d84879db34 Moving tests
svn: r16477
2009-10-30 16:00:44 +00:00
Eli Barzilay
27f1489403 extra flushing
svn: r16468
2009-10-30 07:50:49 +00:00
Eli Barzilay
fdb074407d have at least one more difference from the first test
svn: r16464
2009-10-30 07:20:02 +00:00
Eli Barzilay
f03518f7cc try to sort outputs out
svn: r16463
2009-10-30 06:42:51 +00:00
Sam Tobin-Hochstadt
b7db9e4e67 add back test, but fixed
svn: r16462
2009-10-30 03:19:50 +00:00
Eli Barzilay
e81bbf3b90 undo the fake-error-output change
svn: r16461
2009-10-30 02:54:45 +00:00
Eli Barzilay
8061c07a9d fix one broken test, remove another bogus test
svn: r16460
2009-10-30 02:28:38 +00:00
John Clements
e4ccfc0e25 removed extra arg from call to 'go'
svn: r16457
2009-10-29 19:23:08 +00:00
John Clements
5b06af8c10 removed non-compiling test-suite
svn: r16456
2009-10-29 19:16:40 +00:00
John Clements
0263431ae0 ...
svn: r16455
2009-10-29 19:16:06 +00:00
Stevie Strickland
cf78f9173c These tests are so outdated, that if they ever get put back, they'll have
to change almost completely anyway.  Jettison the whole mess.

svn: r16454
2009-10-29 19:08:40 +00:00
Sam Tobin-Hochstadt
653d0ccd66 Add in-port', port->list', `file->list'.
Add documentation, tests for above.
Allow procedure argument to `fold-files' to return 2 values in all cases.
Document, test.

svn: r16453
2009-10-29 18:49:34 +00:00
Stevie Strickland
4bad2f34c1 Fix another of the tests for units.
svn: r16452
2009-10-29 18:38:08 +00:00
Robby Findler
4ddbe71e2d fixed the comparison contracts so they work right wrt to complex numbers
svn: r16445
2009-10-28 16:04:39 +00:00
Robby Findler
b17d6cfc2c fixed up for our modern times
svn: r16437
2009-10-26 19:48:58 +00:00
Matthew Flatt
9dc53f261e unsafe variants of shootout benchmarks
svn: r16432
2009-10-26 16:53:45 +00:00
Ryan Culpepper
e273dae9b1 macro-stepper: made syntax display faster, esp for early terms
calculate arrows etc wrt known binders instead of all binders

svn: r16416
2009-10-22 22:00:49 +00:00
Jay McCarthy
98488a89ef DrDr bugs and spurious errors
svn: r16412
2009-10-22 18:45:02 +00:00
Jay McCarthy
d557687494 DrDr related changes
svn: r16403
2009-10-21 20:32:19 +00:00
Sam Tobin-Hochstadt
a3082cba0b fix test result
svn: r16398
2009-10-21 14:46:36 +00:00
Ryan Culpepper
c7d95a21c2 syntax/parse:
dependence on scheme/match eliminated
  fail-when, etc use conditional value if syntax
  error message typos (bad tildes) fixed

svn: r16393
2009-10-20 23:17:30 +00:00
Sam Tobin-Hochstadt
37106bd6f7 Add `typed/scheme/system'
Special handling of (letrec ([x e]) x)
Allow functions with optional keyword args to be inferred when kws not supplied.
Infer instantiations for kw functions in simple cases.
Add `Path-String' type
Fix types of `filter', `with-{input-to,output-from}-file'
Add `port->lines'
New 'metrics.ss' test

svn: r16385
2009-10-20 18:30:37 +00:00
Kevin Tew
ac7853dc00 Allow binding to ephemeral ports
svn: r16382
2009-10-20 17:00:20 +00:00
Stevie Strickland
c17885638a * Fix with-contract so that all uncontracted names are automatically exported
* Also allow mutation of contracted names that flow in/out of with-contract.

svn: r16376
2009-10-19 23:17:30 +00:00
Eli Barzilay
3d60fe640b misc prop fixes
svn: r16374
2009-10-19 22:36:12 +00:00
Stevie Strickland
0385b2f89d Fix require-for-syntax -> require + for-syntax
svn: r16367
2009-10-19 16:11:52 +00:00
Sam Tobin-Hochstadt
6a83901a8b Don't error for branches with wrong number of results where return type is Bot.
Allow case-lambda to be subtype of equiv union type.
Add types for path?, fold-files, assert

svn: r16357
2009-10-18 01:10:00 +00:00
Robby Findler
b5dd323d94 fixed up problems uncovered by dr dr
svn: r16355
2009-10-17 21:28:45 +00:00
Robby Findler
931cb35fa4 fixed up these files to be friendlier to the dr dr
svn: r16354
2009-10-17 21:23:35 +00:00
Matthew Flatt
110ea411d1 clean up some tests
svn: r16350
2009-10-17 14:50:52 +00:00
Eli Barzilay
87a169a33e drdr props to ignore Windows-only files; svn:ignore; make plot/run-tests.ss independent of where they are running from
svn: r16346
2009-10-17 02:17:09 +00:00
Jay McCarthy
46734639fb Cleaning up DrDr properties
svn: r16342
2009-10-16 19:29:57 +00:00
Robby Findler
40547e86a2 added a little more automation to the drscheme test suite
svn: r16341
2009-10-16 17:26:32 +00:00
Jon Rafkind
25bd680141 add example syntax-rules honu macro
svn: r16334
2009-10-15 23:38:19 +00:00
Jay McCarthy
c40c3a9884 DrDr properties and stderr change
svn: r16329
2009-10-15 19:42:48 +00:00
Robby Findler
11e87632dc rearranged things so that 2htdp/image has its core snip stuff loaded into drscheme so that saving files with 2htdp/image images in them works
svn: r16317
2009-10-13 23:06:24 +00:00
Robby Findler
3aae13cb60 fixed a bug in rotating non-polygons
svn: r16315
2009-10-13 22:16:17 +00:00
Robby Findler
339860d340 a little more progress (got ellipses bounding boxes right!)
svn: r16307
2009-10-13 17:30:40 +00:00
Robby Findler
7dbd784048 PR 10518
svn: r16282
2009-10-08 16:32:37 +00:00
Robby Findler
e87712fdda an attempt to fix up the bounding boxes on ellipses
svn: r16281
2009-10-08 14:20:04 +00:00
Matthew Flatt
f6d34ab964 add unsafe-flabs and unsafe-fxabs (4.2.2.4)
svn: r16234
2009-10-04 03:25:56 +00:00
Matthew Flatt
20681d40de tests for bitwise-bit-field repair
svn: r16233
2009-10-04 01:41:18 +00:00
Matthew Flatt
9852bb16a2 unboxing of intermediate results in some 'unsafe-fl' combinations
svn: r16229
2009-10-03 14:10:55 +00:00
Matthew Flatt
01d15eb9b6 add unsafe-fx->fl; avoid some gcc warnings
svn: r16221
2009-10-02 19:45:41 +00:00
Sam Tobin-Hochstadt
6efd0abc13 Fix bug with use of match with ... and annotation.
svn: r16216
2009-10-02 16:20:30 +00:00
Robby Findler
d0b4dc24ec added scaling to 2htdp/image
svn: r16211
2009-10-02 11:20:30 +00:00
Robby Findler
2fbb31c6ad a little more progress on images, plus some documentation
svn: r16202
2009-10-01 19:21:45 +00:00
John Clements
352a74cc05 ...
svn: r16199
2009-10-01 17:46:44 +00:00
Eli Barzilay
b280232aea mu
svn: r16160
2009-09-29 04:38:02 +00:00
Jon Rafkind
230fcf49df add simple trace tests
svn: r16158
2009-09-29 04:30:31 +00:00
Robby Findler
53a796d7af first (broken) attempt at bounding boxes for ellipses
svn: r16145
2009-09-28 16:26:03 +00:00
Robby Findler
982f533d28 split up image into core library (required for copy & paste) and other stuff (implementation of the combinators, mostly)
svn: r16141
2009-09-28 11:36:13 +00:00
Robby Findler
68d461f60a renamed 2htdp/picture to 2htdp/image
svn: r16140
2009-09-28 11:04:23 +00:00
Matthew Flatt
95235a4522 fix problem with regexp-match*, etc. and byte regexps (merge to 4.2.2)
svn: r16133
2009-09-26 18:50:41 +00:00
Robby Findler
c91a9847aa more progress on picture.ss; hopefully this is a final version of the internal data definitions
svn: r16132
2009-09-26 15:39:00 +00:00
Robby Findler
9b8c2d15cc added a test case for just creating a snip% (but the test case doesnt run yet)
svn: r16131
2009-09-26 15:38:35 +00:00
Matthew Flatt
be2c552788 fix cleanse-path security-guard test
svn: r16125
2009-09-25 14:16:44 +00:00
Robby Findler
6ac7ad9a3c svn: r16110 2009-09-22 10:10:46 +00:00
Robby Findler
5fb6d5ef47 brought test suites up to date
svn: r16105
2009-09-21 22:43:39 +00:00
Kathy Gray
8daec2e15d Removed tests/profj. Moved the test-engine test file out of the profj tests into its own directory
svn: r16101
2009-09-21 12:42:27 +00:00
Ryan Culpepper
68667c15a6 syntax/parse: removed tests/stxclass to tests/stxparse
svn: r16098
2009-09-20 23:57:56 +00:00
Ryan Culpepper
5ababfac9c syntax/parse: added ~parse action pattern
svn: r16097
2009-09-20 23:49:41 +00:00
Eli Barzilay
95f81d4b50 restored collects/tests/profj, since kathy needs to get the profj tests out, and since it also includes the test-engine tests
svn: r16095
2009-09-20 22:29:02 +00:00
Eli Barzilay
6387797aa4 removed collects/tests/profj
svn: r16088
2009-09-20 20:37:14 +00:00
Ryan Culpepper
282d36e363 syntax/parse: added explicit ~var and ~literal forms (no docs yet)
svn: r16077
2009-09-19 20:04:00 +00:00
Mike Sperber
ec0175bd48 Add missing `contract'.
svn: r16072
2009-09-19 17:23:04 +00:00
Kathy Gray
f300ba967a Changed syntax of check-member-of so that it will work in htdp-beginner
Updated docs to reflect this

svn: r16065
2009-09-18 14:19:50 +00:00
Kathy Gray
e3c2721052 Adding check-member-of and check-range to the htdp languages and updating the docs.
svn: r16064
2009-09-18 12:37:18 +00:00
Stevie Strickland
636adcc142 Refactoring all the private contract stuff into its own playpen.
svn: r16052
2009-09-17 20:55:37 +00:00
Stevie Strickland
70e8f21ba2 Refactoring scheme/private/contract into reasonably sized pieces.
svn: r16049
2009-09-17 19:45:56 +00:00
Stevie Strickland
aca0bcf82e First moving private/contract.ss to a different name. The diaspora from
that file into others will happen next.

svn: r16048
2009-09-17 17:42:45 +00:00
John Clements
93a2302bf3 cleaned up debugging code, still no automated testing
svn: r16015
2009-09-15 00:45:33 +00:00
Jon Rafkind
6137510396 make generators use a parameterized yield function
svn: r16010
2009-09-14 21:11:07 +00:00
Jay McCarthy
b2b557ab0b Fixing test
svn: r16007
2009-09-14 18:40:20 +00:00
Matthew Flatt
30c0dcf045 dynamic-require and 0 mode; repair to unsafe-fl ops; x86_64 for Mac OS X
svn: r15985
2009-09-11 23:05:50 +00:00
Sam Tobin-Hochstadt
49b30f9055 Remove obselete file.
Use syntax/parse instead of stxclass.

svn: r15983
2009-09-11 22:17:45 +00:00
Stevie Strickland
c7255c9daf Copy/paste error.
svn: r15978
2009-09-11 19:39:08 +00:00
Jon Rafkind
d0611c8871 add keyword tests for define-struct/contract
svn: r15974
2009-09-11 17:37:59 +00:00
Mike Sperber
b6ca1e1673 Zap a bunch more `define-contract' forms.
svn: r15971
2009-09-11 09:38:59 +00:00
Mike Sperber
9a613d0d57 Remove invalid-arity tests: these fail directly now that we copy the
arity to the enforcer.

svn: r15935
2009-09-09 15:17:40 +00:00
Sam Tobin-Hochstadt
4907d266df Move parse-type2 to parse-type.
Re-enable typed-scheme tests automatically.

svn: r15924
2009-09-08 20:02:03 +00:00
Sam Tobin-Hochstadt
63d318fd4b New type parser, written using syntax/parse.
- uses keywords with bindings
 - : macro in separate file so it can be used earlier
 - internal function in separate file
FilterSet/c and LatentFilterSet/c contracts
Avoid returning #f when `look-for-in-orig' fails
Add type for unsafe-cdr

svn: r15923
2009-09-08 19:51:34 +00:00
Matthew Flatt
8ae0ea9d14 unsafe ops (v4.2.1.8)
svn: r15899
2009-09-06 18:24:46 +00:00
Jon Rafkind
260ef74035 add define-struct/contract sub-typing tests
svn: r15888
2009-09-05 16:48:15 +00:00
Robby Findler
302cfd2800 updated to new coloring of set!'d variables
svn: r15875
2009-09-04 07:54:42 +00:00
Robby Findler
937d2efab3 added exists to provide/contract
svn: r15871
2009-09-04 04:52:02 +00:00
Sam Tobin-Hochstadt
9e25d28a28 remove extra whitespace
svn: r15863
2009-09-03 07:53:39 +00:00
Sam Tobin-Hochstadt
95cb438a9c New tests
svn: r15856
2009-09-01 22:22:37 +00:00
Stevie Strickland
acce62b181 Add in one test that uses unit/c (via define-unit/contract) instead of just
the signature based contracts.

svn: r15855
2009-09-01 22:00:15 +00:00
Ryan Culpepper
2acdfd6eb5 syntax/parse: fixed error-reporting bugs, added error-reporting tests
svn: r15853
2009-09-01 19:16:33 +00:00
Ryan Culpepper
43d10b5179 added syntax/keyword library
updated syntax/parse to add #:context argument

svn: r15828
2009-08-29 22:58:08 +00:00
Matthew Flatt
a12ec5fd23 improve speed of writing long byte strings with lots of escapes in WXME
svn: r15822
2009-08-28 03:45:38 +00:00
Jon Rafkind
40115cb251 add generator tests back in
svn: r15817
2009-08-27 16:42:17 +00:00
Eli Barzilay
caf1c21d3f removed tests for now
svn: r15813
2009-08-27 12:17:28 +00:00
Eli Barzilay
ec9fc2571a Added `in-producer'.
(Note that `test-generator' tests use quasiquote for the expected result).

svn: r15811
2009-08-27 09:15:52 +00:00
Jon Rafkind
11091ee8fe add a few generator tests
svn: r15809
2009-08-26 21:44:14 +00:00
Eli Barzilay
e9bad827c3 Change the location information: avoid adjusting the source information
of `@foo' to include the `@'.  This applies for both identifiers and
full @-forms.

svn: r15792
2009-08-21 13:16:08 +00:00
Eli Barzilay
82f0d336d4 Added syntax property checking (only locations for now, but will be extended).
svn: r15791
2009-08-21 13:04:19 +00:00
Eli Barzilay
d863e07492 minor reorganization
svn: r15790
2009-08-21 11:40:29 +00:00
Eli Barzilay
1ea8c66511 In Scheme mode @|| will also throw an error instead of being read as a
comment.  This is to avoid confusing situations like

  (define foo (list x '@|| y))

which quoted the `y' since @|| was read as a comment.

svn: r15789
2009-08-21 11:11:21 +00:00
Robby Findler
d3ececcee6 cleaned up rotation
svn: r15782
2009-08-19 12:14:09 +00:00
Stevie Strickland
7d551aa0f2 Small change so that failures due to the implicit compound-unit/infer (like
init-depend failures) will show define-values/invoke-unit/infer as the
original source of the problem.

svn: r15780
2009-08-18 23:22:32 +00:00
Robby Findler
accd344975 started changing the representation so that the rotation angles are always at the bottom of the pictures
svn: r15774
2009-08-17 21:09:33 +00:00
Robby Findler
be2dc50990 moved tests into the tests collection
svn: r15773
2009-08-17 20:17:45 +00:00
Robby Findler
02e4426d06 PR 10406
svn: r15748
2009-08-16 09:56:24 +00:00
Robby Findler
485785176a drscheme now saves its compiled files in its own directory
svn: r15714
2009-08-12 19:44:14 +00:00
Eli Barzilay
7340beddde align expected and result on separate lines
svn: r15688
2009-08-08 07:21:39 +00:00
Eli Barzilay
ab544948e2 no plural if only one test
svn: r15687
2009-08-08 06:49:36 +00:00
Stevie Strickland
8ae58f1244 Primarily this is a change so that the negative party entering into
with-contract based contracts is the syntactic context of the with-contract
expression.  Also, there's some code cleanup.

svn: r15665
2009-08-03 21:15:44 +00:00
Sam Tobin-Hochstadt
1ea71ea94b New contracts for hashtables, vectors, boxes
svn: r15646
2009-07-30 21:15:16 +00:00
Robby Findler
b5b32d1d8e added automatic compilation to the module language, plus various other tweaks (contract library enhancement, bug fixes here and there)
svn: r15635
2009-07-30 05:17:40 +00:00
Eli Barzilay
1ce41ec179 * Improved tester definitions
* Testing read errors too now

svn: r15632
2009-07-30 03:17:50 +00:00
Eli Barzilay
d0f8970add @foo@bar' will now parse as a foo@bar' identifier. This used to be
the case in Scheme mode but not in text mode, and this commit makes
the text mode behave as the Scheme mode.  (Seems like a convenience
point that is not useful since people won't remember the difference.)

svn: r15622
2009-07-29 17:00:29 +00:00