summaryrefslogtreecommitdiff
path: root/tests/typ/compiler/ops.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-03-10 20:47:23 +0100
committerLaurenz <laurmaedje@gmail.com>2023-03-10 21:19:50 +0100
commita9fdff244aef859449a76e5f762ee7c343a8ddcc (patch)
tree172b543183296b4bc30b3008650f594688467914 /tests/typ/compiler/ops.typ
parent62f35602a87574dcc607f1637aeae1be574981ff (diff)
Expose content representation more
Diffstat (limited to 'tests/typ/compiler/ops.typ')
-rw-r--r--tests/typ/compiler/ops.typ10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/typ/compiler/ops.typ b/tests/typ/compiler/ops.typ
index baa2898a..a29003ed 100644
--- a/tests/typ/compiler/ops.typ
+++ b/tests/typ/compiler/ops.typ
@@ -152,11 +152,13 @@
#test(test == test, true)
#test((() => {}) == (() => {}), false)
-// Content cannot be compared.
+// Content compares field by field.
#let t = [a]
-#test(t == t, false)
-#test([] == [], false)
-#test([a] == [a], false)
+#test(t == t, true)
+#test([] == [], true)
+#test([a] == [a], true)
+#test(grid[a] == grid[a], true)
+#test(grid[a] == grid[b], false)
---
// Test comparison operators.