Skip to content

Commit

Permalink
Rollup merge of #69504 - MichaelMcDonnell:hash_assert_ne, r=LukasKalb…
Browse files Browse the repository at this point in the history
…ertodt

Use assert_ne in hash tests

The hash tests were written before the assert_ne macro was added to the standard library. The assert_ne macro provides better output in case of a failure.
  • Loading branch information
Dylan-DPC authored Mar 1, 2020
2 parents 6b2983a + 87327eb commit e9e1ab1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/libcore/tests/hash/sip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,6 @@ fn test_hash_no_concat_alias() {
let t = ("aabb", "");
let u = ("a", "abb");

assert!(s != t && t != u);
assert_ne!(s, t);
assert_ne!(t, u);
assert_ne!(hash(&s), hash(&t));
Expand Down

0 comments on commit e9e1ab1

Please sign in to comment.