Skip to content

Commit

Permalink
add test case for #681
Browse files Browse the repository at this point in the history
  • Loading branch information
byorgey committed Sep 16, 2022
1 parent 91a186e commit 26eab16
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/unit/TestEval.hs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,12 @@ testEval g =
"concat"
("\"x = \" ++ format (2+3) ++ \"!\"" `evaluatesTo` VText "x = 5!")
]
, testGroup
"binders"
[ testCase
"binder in local scope #681"
("def f = a <- return 1 end; let a = 2 in f; return a" `evaluatesTo` VInt 2)
]
]
where
throwsError :: Text -> (Text -> Bool) -> Assertion
Expand Down

0 comments on commit 26eab16

Please sign in to comment.