about summary refs log tree commit diff
path: root/users/tazjin/rlox/src/bytecode/tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'users/tazjin/rlox/src/bytecode/tests.rs')
-rw-r--r--users/tazjin/rlox/src/bytecode/tests.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/users/tazjin/rlox/src/bytecode/tests.rs b/users/tazjin/rlox/src/bytecode/tests.rs
index 500779301b04..9b31d5469be1 100644
--- a/users/tazjin/rlox/src/bytecode/tests.rs
+++ b/users/tazjin/rlox/src/bytecode/tests.rs
@@ -88,3 +88,13 @@ fn equality() {
     expect_bool("42 == true", false);
     expect_bool("!42 == !true", true);
 }
+
+#[test]
+fn comparisons() {
+    expect_bool("42 > 23", true);
+    expect_bool("42 < 23", false);
+    expect_bool("42 <= 42", true);
+    expect_bool("42 <= 23", false);
+    expect_bool("42 >= 42", true);
+    expect_bool("42 >= 23", true);
+}