Add ops test

This commit is contained in:
imaqtkatt 2024-05-21 11:13:03 -03:00
parent c39a7614e3
commit c7ba4b1ce7
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,8 @@
def main:
return [
1 + 2 == 3,
2 - 1 == 1,
-5 + -1 == -6,
-3 * -9 == +27,
0.250 + 0.125 == 0.375,
]

View File

@ -0,0 +1,9 @@
---
source: tests/golden_tests.rs
input_file: tests/golden_tests/run_file/ops.bend
---
NumScott:
[1, 1, +1, +1, 1]
Scott:
[1, 1, +1, +1, 1]