set -e touch expected bash ../../test_diff.sh <<'EOF' int printf(); int main() { printf(""); return 0; } EOF cat <<'EOF' > expected Hello, World! EOF bash ../../test_diff.sh <<'EOF' int printf(); int main() { printf("Hello, World!\n"); return 0; } EOF cat <<'EOF' > expected "Hello, World!" EOF bash ../../test_diff.sh <<'EOF' int printf(); int main() { printf("\"Hello, World!\"\n"); return 0; } EOF