From 0efe669278a5e1c3f2985eba2f3360e91159c54a Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 29 Nov 2022 13:37:25 +0100 Subject: Reorganize library and tests --- tests/typ/code/ops-assoc.typ | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 tests/typ/code/ops-assoc.typ (limited to 'tests/typ/code/ops-assoc.typ') diff --git a/tests/typ/code/ops-assoc.typ b/tests/typ/code/ops-assoc.typ deleted file mode 100644 index ec128c61..00000000 --- a/tests/typ/code/ops-assoc.typ +++ /dev/null @@ -1,18 +0,0 @@ -// Test operator associativity. -// Ref: false - ---- -// Math operators are left-associative. -#test(10 / 2 / 2 == (10 / 2) / 2, true) -#test(10 / 2 / 2 == 10 / (2 / 2), false) -#test(1 / 2 * 3, 1.5) - ---- -// Assignment is right-associative. -{ - let x = 1 - let y = 2 - x = y = "ok" - test(x, none) - test(y, "ok") -} -- cgit v1.2.3