Skip to content

Commit 08f7848

Browse files
authored
Update test_diff.sh
1 parent 630cc8f commit 08f7848

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/test_diff.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,9 @@ fi
6969
echo "Running PHP script..."
7070
php "$PHP_SCRIPT_PATH" > php_output.txt
7171

72-
# Sort both outputs
73-
echo "Sorting outputs..."
74-
sort python_output.txt > python_sorted.txt
75-
sort php_output.txt > php_sorted.txt
76-
7772
# Compare the outputs
7873
echo "Comparing outputs..."
79-
if diff -u python_sorted.txt php_sorted.txt > diff_output.txt; then
74+
if diff -u python_output.txt php_output.txt > diff_output.txt; then
8075
echo "Test Passed: PHP and Python outputs match."
8176
exit 0
8277
else

0 commit comments

Comments
 (0)