From c780cbb6acd0e0526f2d305138190392bdc8cdd7 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 24 Jan 2026 01:43:01 +0900 Subject: refactor: organize test files --- tests/string_operations.sh | 71 ---------------------------------------------- 1 file changed, 71 deletions(-) delete mode 100644 tests/string_operations.sh (limited to 'tests/string_operations.sh') diff --git a/tests/string_operations.sh b/tests/string_operations.sh deleted file mode 100644 index 2466145..0000000 --- a/tests/string_operations.sh +++ /dev/null @@ -1,71 +0,0 @@ -touch expected -test_diff <<'EOF' -int main() { - ""; - return 0; -} -EOF - -touch expected -test_diff <<'EOF' -int main() { - "abc"; - return 0; -} -EOF - -touch expected -test_diff <<'EOF' -int main() { - "\"foo\"bar\\\n\""; - return 0; -} -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 -, -EOF - -test_diff <<'EOF' -int printf(); - -int main() { - char* h = " hello,world" + 1; - printf("%c\n", *h); - printf("%c\n", h[2]); - printf("%c\n", *(h + 5)); -} -EOF - -cat <<'EOF' > expected -105 -0 -EOF - -test_diff <<'EOF' -int printf(); - -int main() { - char* s = "hi"; - while (*s++) { - printf("%d\n", *s); - } -} -EOF -- cgit v1.3-1-g0d28