diff options
| author | Navid Samanghoon <nsama24@student.sdu.dk> | 2025-10-13 12:34:44 +0200 |
|---|---|---|
| committer | mithe24 <mithe24@student.sdu.dk> | 2025-10-29 13:49:57 +0100 |
| commit | 6fbae842769ade6fbb6f77e53049ee06411e2d1a (patch) | |
| tree | 3dfe07d2e8f19b9c70459cce9305361aa96b2b17 /test/test.sh | |
| parent | 42d5445e7bc9a7a665ffd8fbc8f7dc5e8f229ee0 (diff) | |
| download | sorter-6fbae842769ade6fbb6f77e53049ee06411e2d1a.tar.gz sorter-6fbae842769ade6fbb6f77e53049ee06411e2d1a.zip | |
fix(test): the test used an unstable sorting algorithm, which caused insertion sort to fail on duplicates. This has been fixed now.
Diffstat (limited to '')
| -rwxr-xr-x | test/test.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test.sh b/test/test.sh index ec9d65c..855d6cf 100755 --- a/test/test.sh +++ b/test/test.sh @@ -3,7 +3,7 @@ TEST_INPUT="numbers.txt" SORTER="./sorter" -REF="sort -n -k 2" +REF="sort -s -n -k 2" SORTER_OUT="sorter_out.txt" REF_OUT="ref_output.txt" |