Thanks. Fixed -- Matthias
On Mar 30, 2015, at 8:32 AM, Daniel Bastos dbas...@toledo.com wrote:
Matthias, at least in this new address the PDF is a broken link. It currently
points to
http://www.ccs.neu.edu/home/matthias/manifesto/manifesto.pdf
which yields a file not found answer
I understand that the preamble of an XML file (e.g., a first line like ?xml
version=1.0 encoding=utf-8?) is not part of the X-expression representing
that file.
That's why in `response/xexpr`, there's an option for adding a preamble. [1]
But with static XML files, I'm unclear about how
Cool, I have a little snip now that I have a precedure and an input value and
when I click I can increment the input val and display the re-evaluated
expression. One thing I'd like to add are some controls like a slider or
buttons. I know I could just draw something my self and handle clicks
I’m writing a test suite, and I’d like a way to abort a test without aborting a
test suite. It looks to me like “fail-check” is supposed to do this. Here’s
the code I wrote:
#lang racket
(require rackunit)
(define (f x)
(fail-check foo)
(/ 1 0))
(check-equal? (f 3) 4)
(check-equal? 9
The check-equal? function and friends don't do anything special to delimit
control, so failing a check will abort the whole program if it isn't contained
within a test case. You can use the test-case or test-begin forms to limit the
extent of fail-check (which just raises an exn:test:check
For my exact-decimal meta-language, I had some tests that depend on the
read-decimal-as-inexact parameter being set to #f by configure-runtime.
It seems like raco test isn’t running that before running the tests. Is that
intentional?
(by the way the tests are not within a test submodule)
--
I believe the intention of configure-runtime is that it runs only when
your file is run as the main program and not when your program is run
as a library (via require). So I don't think you can use that facility
to implement the exact-decimal language.
Robby
On Mon, Mar 30, 2015 at 8:56 PM,
On Mar 30, 2015, at 10:16 PM, Robby Findler ro...@eecs.northwestern.edu wrote:
On Monday, March 30, 2015, Alexander D. Knauth alexan...@knauth.org wrote:
Well the point of using the configure-runtime was that it would run when it
was the “main program so that exact-decimals would work in the
Well the point of using the configure-runtime was that it would run when it was
the “main program so that exact-decimals would work in the repl, but if this
file was required as a library, it wouldn’t set the parameter for the other
program.
But should the tests be thought of as the “main”
9 matches
Mail list logo