Skip to content

Commit

Permalink
Use v6.2 contract error messages in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lexi-lambda committed Aug 2, 2015
1 parent 2a34780 commit 6ad9993
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions alexis/collection/private/test/contract.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
(thunk (contract (sequenceof integer?) null
'pos 'neg)))
(check-exn
#rx"broke its own contract"
#rx"broke its contract"
(thunk (contract (sequenceof integer?)
'(1 2 a 3 4 5)
'pos 'neg)))
(check-exn
#rx"broke its own contract"
#rx"broke its contract"
(thunk (nth (contract (sequenceof integer?)
`(1 2 3 . ,(stream 'a))
'pos 'neg)
3)))
(check-exn
#rx"broke its own contract"
#rx"broke its contract"
(thunk (contract (sequenceof integer?)
#(1 2 a 3 4 5)
'pos 'neg)))
Expand All @@ -46,12 +46,12 @@
#"abcd"
'pos 'neg)))
(check-exn
#rx"broke its own contract"
#rx"broke its contract"
(thunk (first (contract (sequenceof integer?)
(hash 1 2 3 4)
'pos 'neg))))
(check-exn
#rx"broke its own contract"
#rx"broke its contract"
(thunk (contract (sequenceof integer?)
(set 1 2 'a 3 4 5)
'pos 'neg))))
Expand All @@ -68,7 +68,7 @@
(my-seq)
'pos 'neg))))
(check-exn
#rx"broke its own contract"
#rx"broke its contract"
(thunk (first (contract (sequenceof integer?)
(my-seq)
'pos 'neg)))))

0 comments on commit 6ad9993

Please sign in to comment.