Re: [racket] Unit Testing Best Practice in Racket

2012-05-04 Thread Eli Barzilay
8 hours ago, Matthias Felleisen wrote: > > On Apr 30, 2012, at 7:05 PM, Eli Barzilay wrote: > > > 3. If you use nightly builds, you can put the test code in a > > sub-module: > > > > #lang racket > > ... > > (module+ test (require rackunit)) > > ... > > (module+ test ...tes

Re: [racket] Unit Testing Best Practice in Racket

2012-05-04 Thread Eli Barzilay
Just now, Matthias Felleisen wrote: > > On Apr 30, 2012, at 7:05 PM, Eli Barzilay wrote: > > > #lang racket > > ... > > (module+ test (require rackunit)) > > ... > > (module+ test ...test code here...) > > ... > > I have added this sketch to the Style guide, replacing my

Re: [racket] Unit Testing Best Practice in Racket

2012-05-04 Thread Matthias Felleisen
On Apr 30, 2012, at 7:05 PM, Eli Barzilay wrote: > > 3. If you use nightly builds, you can put the test code in a > sub-module: > > #lang racket > ... > (module+ test (require rackunit)) > ... > (module+ test ...test code here...) > ... > > The `test' submodule (whi

Re: [racket] Key-event test problem‏

2012-05-04 Thread Matthias Felleisen
This experiment suggests that you can: #lang racket/gui (define frame (new frame% [label "hello world"][width 200][height 200])) (define canvas (new (class canvas% (super-new) (define/override (on-char evt) (define kc (send evt get-key-code)) (define

[racket] tcp-connect and IPv6...

2012-05-04 Thread Rüdiger Asche
Hi there, is there a way on Racket to force an outgoing TCP connection (tcp-coonect) to go through an IPv6 interface on a multihomed machine? Thanks! Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Key-event test problem‏

2012-05-04 Thread Laurine Harbulot
We're sorry for our lack of precision. In fact, we're using the Racket/gui library and we would like to know how we can test if two keys are pressed at the same time. We're testing if the spacebar is pressed for the battleship shots and we're testing the left and right keys for the battleship m