Open okuoku opened 8 years ago
Added make test
at https://github.com/okuoku/rapid-gambit/commit/70c16bd713cf136d8fc75cb08fc595088203b5f4
$ make test
Running tests...
Test project /home/oku/rapid-gambit
Start 1: trivial
1/2 Test #1: trivial .......................... Passed 0.69 sec
Start 2: rapid-scheme-test
2/2 Test #2: rapid-scheme-test ................ Passed 172.32 sec
100% tests passed, 0 tests failed out of 2
Total Test time (real) = 173.02 sec
It seems something wrong in SRFI-64.
Upstream master branch Rapid Scheme is now using its own (scheme read)
implementation in the base library. The backend doesn't need to support read
anymore. Maybe this helps.
(Caveat: Rapid's read
still makes use of the backend's string->number
. Eventually, it will provide its own.)
Upstream master branch Rapid Scheme is now using its own (scheme read) implementation
Hmm, the change caused read
from string port not working;
(import (scheme base) (scheme write) (scheme read))
(define (port->sexp p)
(define (itr cur)
(let ((r (read p)))
(if (eof-object? r)
(reverse cur)
(itr (cons r cur))) ))
(itr '()))
(write (port->sexp (open-input-string "a")))
*** ERROR IN #<procedure #2> -- not a record #f
It seems (read-syntax source-port #f)
on (scheme read)
returned #f
.
Thanks for detecting this. Fixed upstream.
On https://github.com/okuoku/rapid-gambit/commit/d494bab93096d7aad2a53b039f68592182b09193 the last unexpected test failures are both on case folding which is unimplemented.