summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/typ/compiler/label.typ7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/typ/compiler/label.typ b/tests/typ/compiler/label.typ
index 407a849d..fabbac80 100644
--- a/tests/typ/compiler/label.typ
+++ b/tests/typ/compiler/label.typ
@@ -63,3 +63,10 @@ _Visible_
#test([Hello<hi>].label, <hi>)
#test([#[A *B* C]<hi>].label, <hi>)
#test([#text(red)[Hello]<hi>].label, <hi>)
+
+---
+// Test getting the name of a label.
+// Ref: false
+#test(str(<hey>), "hey")
+#test(str(label("hey")), "hey")
+#test(str([Hmm<hey>].label), "hey")