Skip to content

Commit

Permalink
implement some tests from my todo list
Browse files Browse the repository at this point in the history
These are possible now that tests capture stdout.
  • Loading branch information
jeremyschlatter committed Feb 15, 2020
1 parent 7e88e3e commit d6c9197
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/Spec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,8 @@ spec = do
> "..."
>> "(fnd [= (car _) \\a] '(\"pear\" \"apple\" \"grape\"))"
> "\"apple\""
"(prn 1)" `is` "1 \n1"
"((fn (x) (prn 'hello) (cons 'a x)) 'b)" `is` "hello \n(a . b)"

it "correctly interprets belexamples.txt" do
slow {- 10 seconds -} $ "(dedup:sort < \"abracadabra\")" `is` "\"abcdr\""
Expand Down Expand Up @@ -911,15 +913,10 @@ spec = do

-- @incomplete add these tests:
--
-- (prn 1) will return 1, but before doing so will print it.
-- (stat x)
-- (coin)
-- (sys x)
-- (thread x)
-- multiple expression body fn's:
-- (fn (x)
-- (prn 'hello)
-- (cons 'a x))
--
-- should be able to run the `bel` function
-- - w/o problems with backquoting
Expand Down

0 comments on commit d6c9197

Please sign in to comment.