Re: [racket-users] raco test

2017-03-27 Thread Matthew Flatt
I'd expect it to work for a single file but fail for multiple files,
because the default `--process` mode for `raco test` won't pass along
the `-S` directory.

Probably `--process` mode should pass along the right collection paths.
Meanwhile, if that's the problem, then using `--places` mode or
`--direct` mode might be an option.

At Mon, 27 Mar 2017 16:03:13 -0700 (PDT), Dan Liebgold wrote:
> Hi, 
> 
> I'd like to invoke 'raco test' with additional collection paths passed in via 
> the command line.  I'm trying this:  racket.exe -S  -l- raco test 
> , but that -S parameter doesn't seem to take effect.
> 
> Thanks,
> Dan

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[racket-users] raco test

2017-03-27 Thread Dan Liebgold
Hi, 

I'd like to invoke 'raco test' with additional collection paths passed in via 
the command line.  I'm trying this:  racket.exe -S  -l- raco test , 
but that -S parameter doesn't seem to take effect.

Thanks,
Dan

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[racket-users] empty lines in a grammer of defform of scribble

2017-03-27 Thread Jos Koot
When I use #:grammar in a defform,
the rules of the grammer are separated by empty lines.
I would like to avoid these empty lines.
Is it possible?
The contracts of #:contracts do not have empty lines between them.
I ask this question because I have a rather long grammar that
would fit in one page without the empty lines; easier to read, IMHO.
Thanks, Jos




-- 
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.
For more options, visit https://groups.google.com/d/optout.


[racket-users] Contracts not enforced with serial-lambda

2017-03-27 Thread Philip McGrath
I've been playing around with trying to attach contracts to serializable
procedures created with serial-lambda. What I've been trying to do hasn't
been working, and I've also come across some surprising behavior. For
example, this program:

> #lang racket
> (require web-server/lang/serial-lambda
>  racket/serialize
>  )
> (define/contract serial-add1
>   (-> number? number?)
>   (serial-lambda (i)
> "broken"))
> (serial-add1 "bad arg")

prints "broken", rather than raising an error for either the domain part or
the range part of the contract (neither of which pass).

I was expecting to potentially run into trouble with things like
deserialization, but I'm not at all sure why the contract in this simple
example isn't enforced.

Thanks,
Philip

-- 
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.
For more options, visit https://groups.google.com/d/optout.