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/compiler/comment.typ | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 tests/typ/compiler/comment.typ (limited to 'tests/typ/compiler/comment.typ') diff --git a/tests/typ/compiler/comment.typ b/tests/typ/compiler/comment.typ new file mode 100644 index 00000000..4a4dc7ab --- /dev/null +++ b/tests/typ/compiler/comment.typ @@ -0,0 +1,33 @@ +// Test line and block comments. + +--- +// Line comment acts as spacing. +A// you +B + +// Block comment does not act as spacing, nested block comments. +C/* + /* */ +*/D + +// Works in code. +#test(type(/*1*/ 1) // +, "integer") + +// End of block comment in line comment. +// Hello */ + +// Nested line comment. +/*//*/ +Still comment. +*/ + +E + +--- +// End should not appear without start. +// Error: 7-9 unexpected end of block comment +/* */ */ + +// Unterminated is okay. +/* -- cgit v1.2.3