Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix lisp interpreter test
Make `perl6 lisp.pl --test` pass again.
« is for word quoting with interpolation so changing for q.
  • Loading branch information
4d47 committed Oct 1, 2016
1 parent 3da8055 commit 2bb7126
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions categories/interpreters/lisp.pl
Expand Up @@ -485,7 +485,7 @@ sub TEST {
[["1", ["2", ["3", ["3", "5"]]]]], 'nested list';
ok eval(qq{ (define fib (lambda (n) (if (< n 2) 1 (+ (fib (- n 1)) (fib (- n 2)))))) }) &&
eval("(fib 10)") == 89, 'fib(10)';
eval «
eval '
(define (sqrt x)
(begin
(define (square x) (* x x))
Expand All @@ -499,7 +499,7 @@ sub TEST {
guess
(sqrt-iter (improve guess))))
(sqrt-iter 1.0)))
»;
';
ok eval("(sqrt 4)").Int == 2, 'sqrt example';

done-testing;
Expand Down

0 comments on commit 2bb7126

Please sign in to comment.