Re: [racket-users] How to get a "green bar" (or similar) on passing tests?

2016-03-05 Thread Alex Knauth
There's also this DrRacket plug-in which works with rackunit to highlight passing tests in green and highlight failing tests in red, as you type: https://github.com/miraleung/racketeer I thought it would be worth sharing. > On Mar 6, 2016, at 12:08 AM,

Re: [racket-users] How to get a "green bar" (or similar) on passing tests?

2016-03-05 Thread Daniel Prager
Thank-you Stephen I had tried to get it to work at the level of test-cases (which I still can't grok), but not test-suites. Those examples would make worthy additions to the docs. Much obliged Dan -- You received this message because you are subscribed to the Google Groups "Racket Users"

Re: [racket-users] How to get a "green bar" (or similar) on passing tests?

2016-03-05 Thread Stephen Chang
Do you mean something like? #lang racket (require rackunit) (require rackunit/gui) (define tests (test-suite "my tests" (test-equal? "check 1" 1 1) (test-equal? "check 2" 2 2))) (test/gui tests) But that will pop a window. Alternatively, #lang racket (require rackunit) (require

[racket-users] How to get a "green bar" (or similar) on passing tests?

2016-03-05 Thread Daniel Prager
Is there a way to get a successful run of RackUnit tests to give a bit of encouragement? E.g. 12 out of 12 tests passed. The regular set-up seems to follow the "no news is good news" philosophy. Also, I couldn't figure out how to summon the rackunit/gui test runner (which may be what I want).

Re: [racket-users] DrR: meta-q just worked!

2016-03-05 Thread Leif Andersen
I am too, thank you. Although it seems to split words from there open parenthesis. For example: ``` hello (some text) ``` Can be come (if it needs to split the line): ``` hell ( some text) ``` This is problematic because scribble seems to interpret the line break as a space, and thus putting

Re: [racket-users] Is it possible to implement generics to an already defined struct?

2016-03-05 Thread Andrew Kent
When you define a generic interface, you can specify defaults for _any_ kind of value you want. Here is a small example that might be useful (which is really just the example here tweaked to be simpler and handle a struct

[racket-users] Is it possible to implement generics to an already defined struct?

2016-03-05 Thread Ronie Uliana
Sorry for the beginner question :( I'm learning Racket and it is an amazing language. Documentation is great, but I couldn't find this. Let's say I have a struct defined somewhere I have no control: (struct blah (x y)) Now, in my module, I have this generics: (define-generics my-thing

Re: [racket-users] DrR: meta-q just worked!

2016-03-05 Thread Jens Axel Søgaard
Is there a way to set the paragraph width to 80 (it seems to be set to 60)? /Jens Axel 2016-03-04 21:06 GMT+01:00 Robby Findler : > Lei Wang actually implemented it. I gave him some advice about it, but > it was his work. I'm very happy he did it too! > >

Re: [racket-users] Racket 6.4 very slow

2016-03-05 Thread Matthew Flatt
Here's a recap of a few points, now that I've spent some time investigating the issue. Replicating the problem and detecting debugging mode: If you start DrRacket fresh or create a new tab and paste (define (total n) (for/sum ([x (in-range (+ 1 n))]) x)) (time (total 10))