From 0f3fe14aa35078832bc6592f454a08b506c55c4b Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Thu, 9 Feb 2023 10:48:37 +0900 Subject: [PATCH] Add a test case for that --- test/testNumericInverse.krk | 9 +++++++++ test/testNumericInverse.krk.expect | 0 2 files changed, 9 insertions(+) create mode 100644 test/testNumericInverse.krk create mode 100644 test/testNumericInverse.krk.expect diff --git a/test/testNumericInverse.krk b/test/testNumericInverse.krk new file mode 100644 index 0000000..6204f11 --- /dev/null +++ b/test/testNumericInverse.krk @@ -0,0 +1,9 @@ +# I have no idea how this broke. + + +let a = 925932958390268329583925832891583215321 +let b = -a + +assert a + b == 0 +assert b + a == 0 +assert a - b == a * 2 diff --git a/test/testNumericInverse.krk.expect b/test/testNumericInverse.krk.expect new file mode 100644 index 0000000..e69de29