Files
c3c/test/test_suite/comments/instring_comments.c3
mmoustafa8108 5055e86518 test: added comprehensive tests for in-string & complex nested comments (#2956)
* test: added comprehensive tests for in-string & complex nested comments

* Properly handle error

---------

Co-authored-by: Christoffer Lerno <christoffer.lerno@gmail.com>
2026-02-20 13:24:08 +01:00

16 lines
286 B
Plaintext

module instring_comments;
import std;
// this test proves the compiler can handle in string comments reliabely.
fn void test_len() @test {
String foo = "Hello, // world!";
String bar = "Hello, /* world */!";
assert(foo.len == 16);
assert(bar.len == 19);
}