[racket-users] raco test: 0 tests run, 1 test passed
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" (check eq? 1 1))) (define my-test-suite (test-suite "My test-suite" my-test-case)) (module+ test (run-tests my-test-suite)) I get: $ raco test test/t.rkt raco test: (submod "test/t.rkt" test) 0 success(es) 0 failure(s) 0 error(s) 0 test(s) run 0 1 test passed the test is clearly run (I even put a printf inside my-test-case to be convinced of that), yet the first output line indicates that there were 0 successes and 0 tests run. The last output line seems to be consistent with the number of tests (checks) run. How do I structure my test programs, such that raco test displays the actual number of tests run? Thanks, Alex. -- 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] Question about how to number equations under scribble-math module
Thanks to the writers of the scribble-math package. It's great to have ready the commands for writing math with LaTeX under Scribble. My question: is there a practical way to add numbering to the equations in a Scribble document with the support of the scribble.math package, and later to be able to refer the equations with their corresponding number. Thank you very much in advance. Sincerely, E. Cómer -- 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] Re: Standalone Executables and shared libraries
On Windows the easiest way to deal with DLL's is to have them in the same directory as the program. If they aren't in the same directory, you'll need to specify their path like `(ffi-lib "C:\\path\\to\\vendor\\dir\\foo")` in the wrapper file. -- 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] JFYI, c-level assertion failures during build
I’m currently in a state where calling `make` in my top-level racket directory results in output ending thusly: … raco setup: 1 making: /cldr-bcp47/cldr/bcp47/data Assertion failed: (!(used && (pre_body->count == 1) && pre_body->vars[0]->optimize.known_val && ((Scheme_Type)(scheme_once_used_type) == (Scheme_Type)(intptr_t)(pre_body->vars[0]->optimize.known_val)) & 0x1)?(Scheme_Type)scheme_integer_type:((Scheme_Object *)(pre_body->vars[0]->optimize.known_val))->type))) && ((Scheme_Once_Used *)pre_body->vars[0]->optimize.known_val)->moved)), function optimize_lets, file ../../../racket/gc2/../src/optimize.c, line 7986. make[1]: *** [plain-in-place] Abort trap: 6 make: *** [in-place] Error 2 My next step is to try a fresh checkout… any idea what’s going on here? John Clements -- 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] Standalone Executables and shared libraries
Hi racketeers, I must be doing something wrong. I apologize for a very long explanation of incongruities I find. What is the intended method of using shared libraries in Racket so that --- DrRacket works when the file is opened --- DrRacket works when the file is opened from the recently used file list --- DrRacket works when the file is opened through OS file associations --- The executable works when created through DrRacket --- The executable works when created through raco exe + raco distribute I have a set of shared libraries from a vendor I cannot mess with. I load one, it loads others. There is a directory for accessing these I'll call "vendor-dir". In vendor-dir is a racket file I'll call "interface.rkt" that, using the FFI, loads these libraries and provides an interface for the purpose of my application. This is good when working with this racket file. However, in the main project directory is "main.rkt" which requires "vendor-dir/interface.rkt". When I open "main.rkt" I have to have the libraries relative to main.rkt, so I copy all of them out of "vendor-dir" into my project directory. This all only works when I launch DrRacket with no files, then open "main.rkt". If I use the recently used file list, the library can't be found in either of those locations. Also when opening via OS file associations. When I create the executable from DrRacket's menu item, the library can't be found. OK, I alter the source to print out where it is looking for libraries and put the DLLs there, but no dice. I have included these files in the dialog box but no dice. OK, so forget "create executable." I can only get the executable to work when I use raco exe, then raco distribute, then move the DLLs to the top level where the executable is put. I am guessing something like "define-runtime-path" is needed here and I won't bore you with the various things I've tried, but ultimately I can only succeed with the two methods described above. What am I supposed to be doing differently? Thanks, Deren -- 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.