aboutsummaryrefslogtreecommitdiff
path: root/tools/odinfmt/tests/binary_expressions.odin
diff options
context:
space:
mode:
Diffstat (limited to 'tools/odinfmt/tests/binary_expressions.odin')
-rw-r--r--tools/odinfmt/tests/binary_expressions.odin25
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/odinfmt/tests/binary_expressions.odin b/tools/odinfmt/tests/binary_expressions.odin
new file mode 100644
index 0000000..85dc63c
--- /dev/null
+++ b/tools/odinfmt/tests/binary_expressions.odin
@@ -0,0 +1,25 @@
+package odin_fmt_tests
+
+
+binary :: proc() {
+
+ addings := 1111111111111111 + 222222222222222222222 + 3333333333333333333 + 44444444444444444444
+
+ addings = 1111111111111111 + 222222222222222222222 + 3333333333333333333 + 44444444444444444444
+
+
+ multiplication := 1000 * 1111111111111111 + 222222222222222222222 + 3333333333333333333 * 2323 + 44444444444444444444
+
+ multiplication = 1000 * 1111111111111111 + 222222222222222222222 + 3333333333333333333 * 2323 + 44444444444444444444
+
+
+ logical_operator_1 := 1111111111111111 == 222222222 && 111123411111 == 33333333434343433333
+
+ logical_operator_1 = 1111111111111111 == 222222222 && 111123411111 == 33333333434343433333
+
+ logical_operator_2 := 111111111111111111111111 == 22222222222222222222232323222 && 111123432411123232311 == 3333332323232432333333333333333333
+
+ logical_operator_2 = 111111111111111111111111 == 22222222222222222222232323222 && 111123432411123232311 == 3333332323232432333333333333333333
+
+
+} \ No newline at end of file