Stevie Strickland
4ac235f534
Trunk merging, taking care to integrate Robby's changes appropriately. Only
...
change from what he did was that I added a name arg to the verify/contract
macro (he already has coerce-contract take a name appropriately, so this
was very simple, yay!).
svn: r11737
2008-09-13 23:17:58 +00:00
Sam Tobin-Hochstadt
9d53eab27d
contracts for infer, and keyword argument for expected
...
svn: r11735
2008-09-13 23:00:24 +00:00
Sam Tobin-Hochstadt
302e28da62
provide tc-result? for contracts
...
svn: r11734
2008-09-13 22:48:19 +00:00
Sam Tobin-Hochstadt
49c816cfaa
Fix call to *Keyword - thanks Matthew.
...
svn: r11733
2008-09-13 22:47:52 +00:00
Sam Tobin-Hochstadt
37796884d8
Doc changes.
...
svn: r11732
2008-09-13 22:45:22 +00:00
Robby Findler
fb17d339ef
oops, committed too soon...
...
svn: r11731
2008-09-13 22:38:21 +00:00
Robby Findler
d69957455c
a bunch more values are now converted into contracts automatically (added bytes)
...
svn: r11730
2008-09-13 22:37:16 +00:00
Robby Findler
85e489219c
a bunch more values are now converted into contracts automatically
...
svn: r11729
2008-09-13 22:35:09 +00:00
Stevie Strickland
2d2b667bd8
Merging the changes from trunk into here. Adding back the changes that
...
allow for reporting the position of the contract that failed.
svn: r11728
2008-09-13 17:05:00 +00:00
Robby Findler
06a4d0df4a
got rid of define-struct/prop since scheme/base has a define-struct that does all that (and more) now
...
svn: r11727
2008-09-13 16:29:01 +00:00
Stevie Strickland
e5539b1766
Trunk merging, check it and see
...
svn: r11726
2008-09-13 16:06:35 +00:00
Robby Findler
c6c876a821
a little more, inspired by PR 9742
...
svn: r11725
2008-09-13 15:27:15 +00:00
Robby Findler
bd7cf63ed0
alt-return and control-return now insert returns
...
svn: r11724
2008-09-13 15:07:48 +00:00
Robby Findler
5566ec2ef2
PR 9742
...
svn: r11723
2008-09-13 13:22:22 +00:00
Eli Barzilay
1f9ee1aac3
Welcome to a new PLT day.
...
svn: r11722
2008-09-13 07:50:30 +00:00
John Clements
bafd239ef0
changed result of check-expect
...
svn: r11721
2008-09-13 06:32:42 +00:00
John Clements
7d5e704058
went to simple true/false for stepper results
...
svn: r11720
2008-09-13 06:28:46 +00:00
Stevie Strickland
0d1b217bce
Add docs for version of define/contract that is in mzlib/contract.
...
svn: r11719
2008-09-13 04:45:44 +00:00
Stevie Strickland
03347cc390
Probably a better way to do this, but now the list is of odd length
...
and I can't just remove define/contract (which is no longer a binding
from scheme/contract) straightforwardly.
svn: r11718
2008-09-13 04:37:51 +00:00
Stevie Strickland
1d9721a406
Oh, yeah, I'm digging me that merge tracking. Trunkward, ho!
...
svn: r11717
2008-09-13 03:20:43 +00:00
Stevie Strickland
0870c7ae1d
Actually, move the old-style define/contract to its own file in mzlib,
...
and change around mzlib/contract.ss appropriately.
svn: r11715
2008-09-13 02:51:09 +00:00
Stevie Strickland
16bce22386
Slight change just because we're now printing what kind of thing triggered
...
the broken contract.
svn: r11714
2008-09-13 02:11:05 +00:00
Stevie Strickland
14ef34e8e3
Revert this all the way back to where it was, I'll fix it up in a sec.
...
svn: r11713
2008-09-13 02:03:34 +00:00
Stevie Strickland
2017df4435
Add in with-contract and define/contract tests here.
...
svn: r11712
2008-09-13 02:01:57 +00:00
Stevie Strickland
ed067cb351
Be specific in what we're iterating over.
...
svn: r11711
2008-09-13 01:37:43 +00:00
Eli Barzilay
42e33b7d94
minor tweaks
...
svn: r11710
2008-09-13 00:51:21 +00:00
Stevie Strickland
c484131597
Okay, here's the old stuff put back, will fix up the unit tests when I get
...
home.
svn: r11709
2008-09-12 23:51:51 +00:00
Stevie Strickland
32f0b99f12
Couple more tests. Also, change things to mzscheme/mzlib. I really should
...
go put the old version of define/contract in mzlib/contract.ss, have it
not import with-contract or the new define/contract, and fix the unit tests
appropriately.
svn: r11708
2008-09-12 23:39:19 +00:00
Stevie Strickland
41ee6c8ac7
Hello, McFly, hello?!
...
I can't believe there wasn't already a test in there that checked this kind
of thing. Wait, of course there couldn't have been, because it was specific
to define/contract and with-contract, and _I'm_ writing those tests. Ah,
well, fixed! :p
svn: r11707
2008-09-12 23:25:58 +00:00
Stevie Strickland
a343268083
Just to make sure the srcloc info is correct.
...
svn: r11706
2008-09-12 22:59:51 +00:00
Matthew Flatt
72055191b4
add printable<%>
...
svn: r11705
2008-09-12 22:50:09 +00:00
Stevie Strickland
f7cd4784de
Need the #:exists keyword here.
...
svn: r11704
2008-09-12 22:43:58 +00:00
Robby Findler
3c2cb93f74
adjusted colors, hopefully better for colorblind people
...
svn: r11703
2008-09-12 22:31:57 +00:00
Stevie Strickland
7b4cf086e9
trunk merge, oh boy
...
svn: r11702
2008-09-12 22:30:47 +00:00
Stevie Strickland
2e22b77278
Add which argument or result caused the contract error for -> contracts
...
(i.e. also ->*, but not ->d or case->).
svn: r11701
2008-09-12 21:45:13 +00:00
Stevie Strickland
e83a72d6ae
* Fix converting modules whose source is (list 'quote 'name) to "module 'name"
...
in contract messages
* Differentiate between define/contract functions and normal definitions
* Fix up contract tests
svn: r11700
2008-09-12 20:46:41 +00:00
Stevie Strickland
068bbd7600
Fix typo.
...
svn: r11699
2008-09-12 19:40:58 +00:00
Stevie Strickland
af5628bb5a
Fix up syntax here.
...
svn: r11698
2008-09-12 19:32:39 +00:00
Stevie Strickland
4e8064e8a5
Change it so that it uses strings instead of symbols here.
...
svn: r11697
2008-09-12 19:01:13 +00:00
Stevie Strickland
19cfe4e49e
I hate this kind of error checking.
...
svn: r11696
2008-09-12 18:55:11 +00:00
Stevie Strickland
019c2c8c34
Handle strings as blame, now add a description of the type of contract
...
boundary that triggered the contract error.
svn: r11695
2008-09-12 18:49:08 +00:00
John Clements
5895f67bfe
fixed stepper tests
...
svn: r11694
2008-09-12 18:19:33 +00:00
Stevie Strickland
b309ced851
Appropriately check the context.
...
svn: r11693
2008-09-12 18:17:40 +00:00
Stevie Strickland
3b44bca1d5
Remove the introducer, which isn't being used anyway.
...
svn: r11692
2008-09-12 18:13:20 +00:00
Stevie Strickland
a4c6d310df
trunk merge
...
svn: r11691
2008-09-12 17:11:39 +00:00
Stevie Strickland
ac576f5085
There's nothing quasi about the body, so just go with regular syntax
...
(and change the quote-syntax uses to just #')
svn: r11690
2008-09-12 17:09:42 +00:00
Stevie Strickland
e53d5c43ff
Just indention.
...
svn: r11689
2008-09-12 16:59:00 +00:00
Stevie Strickland
ea206c7b3d
Go back to the old style.
...
svn: r11688
2008-09-12 16:48:33 +00:00
Stevie Strickland
e2c770ab45
So we _can_ do this, but since provides/requires are between modules, and
...
thus it's the enclosing module that made the contract here, we should
blame it for the misuse, not the contract boundary in which the call was
made (though further thought should be put towards this).
svn: r11687
2008-09-12 16:39:11 +00:00
Stevie Strickland
eb919c78d1
Doc fixes.
...
svn: r11686
2008-09-12 16:26:09 +00:00