mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-17 01:13:11 +00:00
Rollup merge of #69504 - MichaelMcDonnell:hash_assert_ne, r=LukasKalbertodt
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.
This commit is contained in:
commit
e9e1ab1058
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user