We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9db8200 commit 2b6b6bdCopy full SHA for 2b6b6bd
coresimd/ppsv/api/partial_eq.rs
@@ -10,7 +10,7 @@ macro_rules! impl_partial_eq {
10
}
11
#[inline]
12
fn ne(&self, other: &Self) -> bool {
13
- $id::ne(*self, *other).all()
+ $id::ne(*self, *other).any()
14
15
16
};
@@ -30,6 +30,18 @@ macro_rules! test_partial_eq {
30
assert!(!(a == b));
31
assert!(a == a);
32
assert!(!(a != a));
33
+
34
+ // Test further to make sure comparisons work with non-splatted
35
+ // values.
36
+ // This is to test the fix for #511
37
38
+ let a = $id::splat($false).replace(0, $true);
39
+ let b = $id::splat($true);
40
41
+ assert!(a != b);
42
+ assert!(!(a == b));
43
+ assert!(a == a);
44
+ assert!(!(a != a));
45
46
47
0 commit comments