parent
8e14b2107b
commit
1e081138be
@ -0,0 +1,26 @@
|
|||||||
|
From d3d78143b91d4d38503f87e00915c205d5ae0ec1 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
||||||
|
Date: Mon, 8 Jan 2018 23:04:38 +0100
|
||||||
|
Subject: [PATCH] tests: fix syntax error
|
||||||
|
|
||||||
|
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
||||||
|
---
|
||||||
|
src/tests.rs | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/tests.rs b/src/tests.rs
|
||||||
|
index 25663f7..c7705fc 100644
|
||||||
|
--- a/src/tests.rs
|
||||||
|
+++ b/src/tests.rs
|
||||||
|
@@ -258,7 +258,7 @@ fn test_hash_usize() {
|
||||||
|
#[cfg(target_arch = "x86")]
|
||||||
|
fn test_hash_usize() {
|
||||||
|
let val = 0xdeadbeef_deadbeef_u64;
|
||||||
|
- assert_ne(hash(&(val as u64)), hash(&(val as usize)));
|
||||||
|
+ assert_ne!(hash(&(val as u64)), hash(&(val as usize)));
|
||||||
|
assert_eq!(hash(&(val as u32)), hash(&(val as usize)));
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.15.1
|
||||||
|
|
Loading…
Reference in new issue