SuzanneSoy / repltest

REPLtest: Copy-paste your REPL interactions, and have them run as tests
http://docs.racket-lang.org/repltest/
Other
2 stars 0 forks source link

Wrong `read` function used for #lang repltest datalog #13

Open SuzanneSoy opened 8 years ago

SuzanneSoy commented 8 years ago
#lang repltest datalog
parent(amy, anabella).
parent(john, anabella).
parent(anabella, jack).
parent(jack, ted).

grandparent(X, Z) :- parent(X, Y), parent(Y, Z).

> grandparent(X, ted)?
grandparent(anabella, ted).

This gives the error:

read: illegal use of `.'
SuzanneSoy commented 8 years ago

I think that repltest is not using the read function from #lang datalog.