[racket-users] catching a contract violation in a unit test with check-exn

2017-11-18 Thread Tim Hanson
Hi, I guess this didn't find the right subject matter expert yet. Would it be better to ask a specific person or use a different channel? Cheers, tbh -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiv

Re: [racket-users] catching a contract violation in a unit test with check-exn

2017-11-18 Thread Sam Tobin-Hochstadt
The second argument to check-exn needs to be a thunk. Sam On Nov 18, 2017 7:32 AM, "Tim Hanson" wrote: > Hi, I guess this didn't find the right subject matter expert yet. Would it > be better to ask a specific person or use a different channel? > Cheers, tbh > > -- > You received this message b

Re: [racket-users] catching a contract violation in a unit test with check-exn

2017-11-18 Thread Matthias Felleisen
Hers is what Sam means with an example: #lang racket (module+ test (require rackunit)) ;; --- in file (module server racket (provide (contract-out (f (-> integer? integer? (define (f x) (if (= x 1) "hello world" x))) ;; --- in text client (require 'server) (module+ te

Re: [racket-users] catching a contract violation in a unit test with check-exn

2017-11-18 Thread Tim Hanson
Beautiful! Thanks to both of you. Can't wait to try it out. Cheers, Tim -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com

Re: [racket-users] 3d plots "broken" some time after 6.11 release

2017-11-18 Thread 'John Clements' via Racket Users
> On Nov 16, 2017, at 17:36, Robby Findler wrote: > > Dragging and IO could easily be different things. For IO, when I run > this program with a git build from 9 days ago, I don't see any > freezing (up to 1,000 lines). Do you? > > #lang racket > (let loop ([n 0]) > (printf "~a ~a\n" >

[racket-users] Re: 3d plots "broken" some time after 6.11 release

2017-11-18 Thread 'John Clements' via Racket Users
Update on this; it definitely has nothing to do with DrRacket, I can reproduce it directly in Racket with a frame% wrapper. Also, thanks to Northwestern’s lengthier nightly snapshot trail, I’ve discovered that the regression was apparently introduced between 6.10.1.1 and 6.10.1.2, although it’s