Re: [racket-users] handin-server: reader used in checker modules

2018-10-17 Thread Jordan Johnson
> On Oct 17, 2018, at 11:30, Shu-Hung You > wrote: >> >> Would it help if in the check module you use `=' as the equality test, >> or specify #e10.25 instead? > > Success! > > Specifying > (!test (hour-angle 12 20 30) #e10.25) > produces the behavior

Re: [racket-users] handin-server: reader used in checker modules

2018-10-17 Thread Jordan Johnson
On Oct 17, 2018, at 11:30, Shu-Hung You wrote: > > Would it help if in the check module you use `=' as the equality test, > or specify #e10.25 instead? Success! Specifying (!test (hour-angle 12 20 30) #e10.25) produces the behavior I expected, correctly comparing the numbers. Thanks, all!

Re: [racket-users] handin-server: reader used in checker modules

2018-10-17 Thread Jordan Johnson
>> So, what aspect of the language config would be responsible for 41/4 not >> equaling 10.25? > > Welcome to Racket v7.0.0.20. >> (= 41/4 10.25) > #t >> (read-decimal-as-inexact #f) >> (= 41/4 10.25) > #t > > Do you perhaps print and read the result? Nope. The code that’s generating the

Re: [racket-users] handin-server: reader used in checker modules

2018-10-17 Thread Shu-Hung You
On Wed, Oct 17, 2018 at 1:12 PM Jordan Johnson wrote: > > > On Oct 17, 2018, at 10:35, Matthias Felleisen wrote: > > (check-expect (+ 10 .25) 10.25) > > errors with check-expect’s message about not comparing inexact numbers, but > in DrRacket+BSL the decimals are treated as exact numbers. > >

Re: [racket-users] handin-server: reader used in checker modules

2018-10-17 Thread Matthias Felleisen
> On Oct 17, 2018, at 2:11 PM, Jordan Johnson wrote: > > >> On Oct 17, 2018, at 10:35, Matthias Felleisen wrote: >>> (check-expect (+ 10 .25) 10.25) >>> >>> errors with check-expect’s message about not comparing inexact numbers, but >>> in DrRacket+BSL the decimals are treated as exact

Re: [racket-users] handin-server: reader used in checker modules

2018-10-17 Thread Jordan Johnson
> On Oct 17, 2018, at 10:35, Matthias Felleisen wrote: >> (check-expect (+ 10 .25) 10.25) >> >> errors with check-expect’s message about not comparing inexact numbers, but >> in DrRacket+BSL the decimals are treated as exact numbers. >> >> What do I need to change in the checker, in

Re: [racket-users] handin-server: reader used in checker modules

2018-10-17 Thread Matthias Felleisen
> On Oct 17, 2018, at 1:21 PM, Jordan Johnson wrote: > > Hi all, > > In my last thread regarding the handin server, Matthew suggested: >> A workaround is to use `'lang/htdp-beginner` as the language instead of >> `'(special beginner)`. That happens to avoid a redundant and >> troublemaking