Re: [racket] interaction between (require racket) and check-expect

2011-11-05 Thread Robby Findler
(require racket) generally doesn't work in the teaching languages. It shadows define-struct, in this case, and you get the wrong version (so you get generative structs). Why are you doing (require racket)? There's probably some smaller library you could use that would not shadow core things... Ro

[racket] interaction between (require racket) and check-expect

2011-11-05 Thread Adam Shaw
Hi -- My students noticed that certain check-expect tests stop working in the presence of (require racket). For example, the check-expect in this three-line file fails under ISĪ»: (require racket) (define-struct foo (x)) (check-expect (make-foo 0) (make-foo 0)) Why is this happening? Thanks --