test_failed "$file not found"
fi
if ! fgrep -q "$string" "$file"; then
- test_failed "File $file does not contain: $string. Actual content: $(cat $file)"
+ test_failed "File $file does not contain \"$string\"\nActual content: $(cat $file)"
fi
}
test_failed "$file not found"
fi
if fgrep -q "$string" "$file"; then
- test_failed "File $file contains: $string. Actual content: $(cat $file)"
+ test_failed "File $file contains \"$string\"\nActual content: $(cat $file)"
fi
}