File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -175,13 +175,17 @@ output=$( load_fixture "ls-function" | $diff_so_fancy )
175
175
176
176
@test " Reworked hunks (deleted files)" {
177
177
output=$( load_fixture " dotfiles" | $diff_so_fancy )
178
- assert_output --partial ' @ diff-so-fancy:1 @'
178
+ run printf " %s" " $output "
179
+
180
+ assert_line --index 188 --partial " @ diff-so-fancy:1 @"
179
181
}
180
182
181
183
@test " Hunk formatting: @@@ -A,B -C,D +E,F @@@" {
182
184
# stderr forced into output
183
185
output=$( load_fixture " complex-hunks" | $diff_so_fancy 2>&1 )
184
- assert_output --partial ' @ header_clean.pl:107 @'
186
+ run printf " %s" " $output "
187
+
188
+ assert_line --index 4 --partial " @ header_clean.pl:107 @"
185
189
refute_output --partial ' Use of uninitialized value'
186
190
}
187
191
@@ -214,6 +218,8 @@ output=$( load_fixture "ls-function" | $diff_so_fancy )
214
218
215
219
@test " non-git diff parsing" {
216
220
output=$( load_fixture " weird" | $diff_so_fancy )
217
- assert_output --partial ' modified: doc/manual.xml.head'
218
- assert_output --partial ' @ manual.xml.head:8355 @'
221
+ run printf " %s" " $output "
222
+
223
+ assert_line --index 1 --partial " modified: doc/manual.xml.head"
224
+ assert_line --index 3 --partial " @ manual.xml.head:8355 @"
219
225
}
You can’t perform that action at this time.
0 commit comments