Skip to content

Commit

Permalink
Add test for three way merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Baker committed Mar 17, 2016
1 parent 6054b77 commit 1c417ac
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/header_clean.bats
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ output=$( load_fixture "file-moves" | $diff_so_fancy )
refute_output --partial 'Use of uninitialized value'
}

@test "Three way merge" {
# stderr forced into output
output=$( load_fixture "complex-hunks" | $diff_so_fancy )
# Lines should not have + or - in at the start
refute_output --partial '- my $foo = shift(); # Array passed in by reference'
refute_output --partial '+ my $array = shift(); # Array passed in by reference'
refute_output --partial ' sub parse_hunk_header {'
}

@test "mnemonicprefix handling" {
output=$( load_fixture "mnemonicprefix" | $diff_so_fancy )
assert_output --partial 'modified: test/header_clean.bats'
Expand Down

0 comments on commit 1c417ac

Please sign in to comment.