mirror of
https://github.com/HigherOrderCO/Bend.git
synced 2024-08-14 22:30:30 +03:00
Update cspell and add nat resugar test
This commit is contained in:
parent
cf69b99e5a
commit
6b7cbeb7be
@ -44,6 +44,7 @@
|
||||
"mult",
|
||||
"namegen",
|
||||
"nams",
|
||||
"nats",
|
||||
"numop",
|
||||
"nums",
|
||||
"oper",
|
||||
|
4
tests/golden_tests/run_file/nat_add_num.hvm
Normal file
4
tests/golden_tests/run_file/nat_add_num.hvm
Normal file
@ -0,0 +1,4 @@
|
||||
(Nat.add (Nat.zero) x) = x
|
||||
(Nat.add (Nat.succ p) x) = (Nat.succ (Nat.add p x))
|
||||
|
||||
main = (Nat.add #4 0)
|
9
tests/snapshots/run_file__nat_add_num.hvm.snap
Normal file
9
tests/snapshots/run_file__nat_add_num.hvm.snap
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
source: tests/golden_tests.rs
|
||||
input_file: tests/golden_tests/run_file/nat_add_num.hvm
|
||||
---
|
||||
Lazy mode:
|
||||
(Nat.succ (Nat.succ (Nat.succ (Nat.succ 0))))
|
||||
|
||||
Strict mode:
|
||||
(Nat.succ (Nat.succ (Nat.succ (Nat.succ 0))))
|
Loading…
Reference in New Issue
Block a user