Skip to content

Commit 7861645

Browse files
committed
tweak euclid tests
1 parent 9c5034c commit 7861645

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ops/euclid.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ mod tests {
226226
};
227227
}
228228

229-
test_euclid!(usize u8 u16 u32 u64 isize);
229+
test_euclid!(usize u8 u16 u32 u64);
230230
}
231231

232232
#[test]
@@ -249,7 +249,7 @@ mod tests {
249249
};
250250
}
251251

252-
test_euclid!(i8 i16 i32 i64);
252+
test_euclid!(isize i8 i16 i32 i64);
253253
}
254254

255255
#[test]
@@ -261,7 +261,7 @@ mod tests {
261261
let x: $t = 12.1;
262262
let y: $t = 3.2;
263263
assert!(Euclid::div_euclid(&x, &y) * y + Euclid::rem_euclid(&x, &y) - x
264-
<=46.4 * <$t as ::float::FloatCore>::epsilon());
264+
<= 46.4 * <$t as ::float::FloatCore>::epsilon());
265265
assert!(Euclid::div_euclid(&x, &-y) * -y + Euclid::rem_euclid(&x, &-y) - x
266266
<= 46.4 * <$t as ::float::FloatCore>::epsilon());
267267
assert!(Euclid::div_euclid(&-x, &y) * y + Euclid::rem_euclid(&-x, &y) + x
@@ -291,6 +291,6 @@ mod tests {
291291
};
292292
}
293293

294-
test_euclid_checked!(i8 i16 i32 i64);
294+
test_euclid_checked!(isize i8 i16 i32 i64);
295295
}
296296
}

0 commit comments

Comments
 (0)