Skip to content

Commit

Permalink
Add test.
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Jan 28, 2024
1 parent c0e96f8 commit b6b8d19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/language/eval.liq
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ def f() =
# Eval with type cast
let eval ([x, y] : [int]) = "[123,456]"
t("25", {(x, y) == (123, 456)})

# @ infix notation
def f(x) = 2 * x end
t("26", {2@f == 4})
if fail() then test.fail() else test.pass() end
end

Expand Down

0 comments on commit b6b8d19

Please sign in to comment.