mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
* test: added comprehensive tests for in-string & complex nested comments * Properly handle error --------- Co-authored-by: Christoffer Lerno <christoffer.lerno@gmail.com>
16 lines
286 B
Plaintext
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);
|
|
|
|
}
|