aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test_string_operations.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_string_operations.sh')
-rw-r--r--tests/test_string_operations.sh57
1 files changed, 0 insertions, 57 deletions
diff --git a/tests/test_string_operations.sh b/tests/test_string_operations.sh
deleted file mode 100644
index 0c9a07e..0000000
--- a/tests/test_string_operations.sh
+++ /dev/null
@@ -1,57 +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
-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
-