added run time strings

This commit is contained in:
IgorCielniak
2025-12-11 20:25:34 +01:00
parent a33ae22573
commit 96366a98a8
16 changed files with 722 additions and 4 deletions

View File

@@ -99,6 +99,20 @@ compile-only
""",
expected_stdout="6\n",
),
TestCase(
name="string_puts",
source=f"""
import {ROOT / 'stdlib.sl'}
: main
\"hello world\" puts_str
\"line1\\nline2\" puts_str
\"\" puts_str
0
;
""",
expected_stdout="hello world\nline1\nline2\n\n",
),
]