Re: [racket-users] raco test: 0 tests run, 1 test passed

2017-03-03 Thread Jay McCarthy
Hi Alex, It is a bit confusing. There's a lot of history to the message. It used to be that rackunit only had the test-suites, test-cases, and the checks. It tries very hard to NOT count the checks as "tests". Later, the checks were exposed so you didn't have to but them in test-suites and test-c

Re: [racket-users] raco test: 0 tests run, 1 test passed

2017-03-02 Thread Alex Harsanyi
On Friday, March 3, 2017 at 7:18:27 AM UTC+8, schuster wrote: > The problem is that a test-case expression runs a test immediately; it does > not return a test object to be run later. In your case, the test runs while > my-test-case is being defined, then no test at all actually runs > (my-test-

Re: [racket-users] raco test: 0 tests run, 1 test passed

2017-03-02 Thread Jonathan Schuster
The problem is that a test-case expression runs a test immediately; it does not return a test object to be run later. In your case, the test runs while my-test-case is being defined, then no test at all actually runs (my-test-case is just #). A test-suite expression, however, *does* construct a te

[racket-users] raco test: 0 tests run, 1 test passed

2017-02-24 Thread Alex Harsanyi
I'm a bit confused about how raco test is reporting the number of tests run, if a test case is defined outside a test suite. If I run the program below: #lang racket (require rackunit) (require rackunit/text-ui) (define my-test-case (test-case "My Test case"