aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test_line_continuation.sh
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-10-04 15:33:07 +0900
committernsfisis <nsfisis@gmail.com>2025-10-04 15:33:10 +0900
commit46e79e69ae866df88cb9442a7329c72662ed2db3 (patch)
tree13561c1e7273ed0311da37957e4a82d15b243ba4 /tests/test_line_continuation.sh
parent7e11675136edf8136f812c85cd45bc88ba405533 (diff)
downloadducc-46e79e69ae866df88cb9442a7329c72662ed2db3.tar.gz
ducc-46e79e69ae866df88cb9442a7329c72662ed2db3.tar.zst
ducc-46e79e69ae866df88cb9442a7329c72662ed2db3.zip
refactor: rename test files
Diffstat (limited to 'tests/test_line_continuation.sh')
-rw-r--r--tests/test_line_continuation.sh57
1 files changed, 0 insertions, 57 deletions
diff --git a/tests/test_line_continuation.sh b/tests/test_line_continuation.sh
deleted file mode 100644
index c5b5c2e..0000000
--- a/tests/test_line_continuation.sh
+++ /dev/null
@@ -1,57 +0,0 @@
-cat <<'EOF' > expected
-10 20
-100 300 500
-EOF
-
-test_diff <<'EOF'
-int printf();
-in\
-t ma\
-in() {
- int x = 1\
-0;
-
- int y = 2\
-\
-\
-0;
-
-#def\
-ine X 100
-#define Y 100 + \
-200
-#define Z /*
-*/ 500
- // comment \
- x *= 100, y *= 200;
- /* comment *\
-/
-
- printf("%d %d\n", x, y);
- printf("%d %d %d\n", X, Y, Z);
-}
-EOF
-
-cat <<'EOF' > expected
-main.c:1: <new-line> expected, but got <eof>
-EOF
-
-echo -n 'int main() {}\' | test_compile_error
-
-cat <<'EOF' > expected
-Hello World
-Line continues
-EOF
-
-# CRLF
-printf 'int printf(const char*, ...);\r\nint main() {\r\n printf("Hello World\\n");\r\n printf("Line con\\\r\ntinues\\n");\r\n return 0;\r\n}\r\n' > main_crlf.c
-test_diff < main_crlf.c
-
-# CR
-printf 'int printf(const char*, ...);\rint main() {\r printf("Hello World\\n");\r printf("Line con\\\rtinues\\n");\r return 0;\r}\r' > main_cr.c
-test_diff < main_cr.c
-
-# Mixed
-printf 'int printf(const char*, ...);\nint main() {\r\n printf("Hello World\\n");\r printf("Line con\\\r\ntinues\\n");\n return 0;\r\n}\r\n' > main_mixed.c
-test_diff < main_mixed.c
-