From 8b58171d7ca036d71b32749286c251cc91bdd10e Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 18 May 2021 00:36:11 +0200 Subject: Reorganize test cases --- tests/typ/code/comment.typ | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/typ/code/comment.typ (limited to 'tests/typ/code/comment.typ') diff --git a/tests/typ/code/comment.typ b/tests/typ/code/comment.typ new file mode 100644 index 00000000..25180211 --- /dev/null +++ b/tests/typ/code/comment.typ @@ -0,0 +1,23 @@ +// Test line and block comments. + +--- +// Line comment acts as spacing. +A// you +B + +// Block comment does not act as spacing. +C/* + /* */ +*/D + +// Works in code. +#test(type(/*1*/ 1) // +, "integer") + +--- +// End should not appear without start. +// Error: 1:7-1:9 unexpected end of block comment +/* */ */ + +// Unterminated is okay. +/* -- cgit v1.2.3