diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-07-13 20:07:10 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-08-15 10:04:20 +0900 |
| commit | 88d01cd637ae2b7d6c7c2e721eb98a72160c44e2 (patch) | |
| tree | 0c46c8b032715d6f9132be8e2667882e4ef678b9 /tests | |
| parent | 286a9b6254e88ac5ee6537ef3a11db8060ce06c5 (diff) | |
| download | ducc-88d01cd637ae2b7d6c7c2e721eb98a72160c44e2.tar.gz ducc-88d01cd637ae2b7d6c7c2e721eb98a72160c44e2.tar.zst ducc-88d01cd637ae2b7d6c7c2e721eb98a72160c44e2.zip | |
feat: implement some of escape sequences
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/053.sh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/053.sh b/tests/053.sh new file mode 100644 index 0000000..c4350b8 --- /dev/null +++ b/tests/053.sh @@ -0,0 +1,33 @@ +set -e + +cat <<'EOF' > expected +39 +34 +63 +92 +7 +8 +12 +10 +13 +9 +11 +EOF +bash ../../test_diff.sh <<'EOF' +int printf(); + +int main() { + printf("%d\n", '\''); + printf("%d\n", '\"'); + printf("%d\n", '\?'); + printf("%d\n", '\\'); + printf("%d\n", '\a'); + printf("%d\n", '\b'); + printf("%d\n", '\f'); + printf("%d\n", '\n'); + printf("%d\n", '\r'); + printf("%d\n", '\t'); + printf("%d\n", '\v'); + return 0; +} +EOF |
