File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ impl TestAssertionFailure {
174
174
175
175
pub ( crate ) fn log ( & self ) {
176
176
TestOutcome :: fail_current_test ( ) ;
177
- print ! ( "{}" , self ) ;
177
+ println ! ( "{}" , self ) ;
178
178
}
179
179
}
180
180
Original file line number Diff line number Diff line change @@ -137,13 +137,18 @@ mod tests {
137
137
}
138
138
139
139
#[ test]
140
- fn should_output_second_failure_message_on_second_assertion_failure_with_expect_that ( )
141
- -> Result < ( ) > {
140
+ fn should_output_both_failure_messages_when_two_expect_that_assertions_fail ( ) -> Result < ( ) > {
142
141
let output = run_external_process_in_tests_directory ( "two_expect_that_failures" ) ?;
143
142
144
143
verify_that ! (
145
144
output,
146
145
contains_regex( indoc! { "
146
+ Value of: value
147
+ Expected: is equal to 3
148
+ Actual: 2,
149
+ which isn't equal to 3
150
+ at .*integration_tests/src/two_expect_that_failures.rs:[0-9]+:9
151
+
147
152
Value of: value
148
153
Expected: is equal to 4
149
154
Actual: 2,
You can’t perform that action at this time.
0 commit comments