From 0fe7524bd07365ceafa906a2ec3e9fb2d6650feb Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 5 Jan 2026 02:19:29 +0900 Subject: feat: concatenate adjacent string literals --- tests/string_operations.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/string_operations.sh b/tests/string_operations.sh index 0c9a07e..2466145 100644 --- a/tests/string_operations.sh +++ b/tests/string_operations.sh @@ -22,6 +22,21 @@ int main() { } EOF +cat <<'EOF' > expected +abc +defghijkl +EOF + +test_diff <<'EOF' +int printf(); + +int main() { + printf("abc\n"); + printf("def" "ghi" + "jkl\n"); +} +EOF + cat <<'EOF' > expected h l @@ -54,4 +69,3 @@ int main() { } } EOF - -- cgit v1.2.3-70-g09d2