Skip to content

Commit 2ce1d72

Browse files
committed
Allow clippy::float_cmp in tests
1 parent 6b90af7 commit 2ce1d72

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1574,6 +1574,7 @@ mod test {
15741574
}
15751575

15761576
#[test]
1577+
#[allow(clippy::float_cmp)]
15771578
fn test_l1_norm() {
15781579
assert_eq!(_0_0i.l1_norm(), 0.0);
15791580
assert_eq!(_1_0i.l1_norm(), 1.0);
@@ -1611,6 +1612,7 @@ mod test {
16111612
#[test]
16121613
#[cfg_attr(target_arch = "x86", ignore)]
16131614
// FIXME #7158: (maybe?) currently failing on x86.
1615+
#[allow(clippy::float_cmp)]
16141616
fn test_norm() {
16151617
fn test(c: Complex64, ns: f64) {
16161618
assert_eq!(c.norm_sqr(), ns);
@@ -2630,6 +2632,7 @@ mod test {
26302632
}
26312633

26322634
#[test]
2635+
#[allow(clippy::float_cmp)]
26332636
fn test_const() {
26342637
const R: f64 = 12.3;
26352638
const I: f64 = -4.5;

0 commit comments

Comments
 (0)