Skip to content

Commit

Permalink
Tweak test output on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Rantanen committed Oct 6, 2019
1 parent dfc008f commit bbf262d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/libsyntax/json/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ fn test_positions(code: &str, span: (u32, u32), expected_output: SpanTestData) {
let actual_output = str::from_utf8(&bytes).unwrap();
let actual_output: TestData = decode(actual_output).unwrap();

println!("expected output:\n------\n{:#?}------", expected_output);
println!("actual output:\n------\n{:#?}------", actual_output);

assert!(expected_output == actual_output)
assert_eq!(expected_output, actual_output)
})
}

Expand Down

0 comments on commit bbf262d

Please sign in to comment.