diff --git a/test/mechanicaldiff.bats b/test/mechanicaldiff.bats index 0f6358c..82c7ea1 100755 --- a/test/mechanicaldiff.bats +++ b/test/mechanicaldiff.bats @@ -192,7 +192,7 @@ setup() { -e '/^index /d' \ "$BATS_TEST_TMPDIR/diff_expected")" output_normalized="$(printf '%s\n' "$output" | recountdiff | sed -e '/^index /d')" - assert_equal "$expected" "$output_normalized" + assert_equal "$output_normalized" "$expected" } @test "keeps matching change with an extra added line" { @@ -224,7 +224,7 @@ setup() { -e '/^index /d' \ "$BATS_TEST_TMPDIR/diff_expected")" output_normalized="$(printf '%s\n' "$output" | recountdiff | sed -e '/^index /d')" - assert_equal "$expected" "$output_normalized" + assert_equal "$output_normalized" "$expected" } @test "ignores leading and trailing blank lines for comparison" { @@ -270,7 +270,7 @@ setup() { -e '/^index /d' \ "$BATS_TEST_TMPDIR/diff_expected")" output_normalized="$(printf '%s\n' "$output" | sed -e '/^index /d')" - assert_equal "$expected" "$output_normalized" + assert_equal "$output_normalized" "$expected" } @test "drops hunk when all pairs become context" {