From c7ba4b1ce7000a19ebb21e08a546f206a03bd55a Mon Sep 17 00:00:00 2001 From: imaqtkatt Date: Tue, 21 May 2024 11:13:03 -0300 Subject: [PATCH] Add ops test --- tests/golden_tests/run_file/ops.bend | 8 ++++++++ tests/snapshots/run_file__ops.bend.snap | 9 +++++++++ 2 files changed, 17 insertions(+) create mode 100644 tests/golden_tests/run_file/ops.bend create mode 100644 tests/snapshots/run_file__ops.bend.snap diff --git a/tests/golden_tests/run_file/ops.bend b/tests/golden_tests/run_file/ops.bend new file mode 100644 index 00000000..002585da --- /dev/null +++ b/tests/golden_tests/run_file/ops.bend @@ -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, + ] diff --git a/tests/snapshots/run_file__ops.bend.snap b/tests/snapshots/run_file__ops.bend.snap new file mode 100644 index 00000000..51ac5efc --- /dev/null +++ b/tests/snapshots/run_file__ops.bend.snap @@ -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]