Skip to content

Commit

Permalink
Update test_diff.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
futureweb authored Nov 26, 2024
1 parent 630cc8f commit 08f7848
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/test_diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,9 @@ fi
echo "Running PHP script..."
php "$PHP_SCRIPT_PATH" > php_output.txt

# Sort both outputs
echo "Sorting outputs..."
sort python_output.txt > python_sorted.txt
sort php_output.txt > php_sorted.txt

# Compare the outputs
echo "Comparing outputs..."
if diff -u python_sorted.txt php_sorted.txt > diff_output.txt; then
if diff -u python_output.txt php_output.txt > diff_output.txt; then
echo "Test Passed: PHP and Python outputs match."
exit 0
else
Expand Down

0 comments on commit 08f7848

Please sign in to comment.