Skip to content

Commit

Permalink
Added a fex negative tests
Browse files Browse the repository at this point in the history
  • Loading branch information
WizardOfMenlo committed Mar 22, 2022
1 parent 4148095 commit 1656a2f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,11 @@ macro_rules! impl_integer_for_usize {
assert!((6 as $T).is_multiple_of(&(6 as $T)));
assert!((6 as $T).is_multiple_of(&(3 as $T)));
assert!((6 as $T).is_multiple_of(&(1 as $T)));


assert!(!(42 as $T).is_multiple_of(&(5 as $T)));
assert!(!(5 as $T).is_multiple_of(&(3 as $T)));
assert!(!(42 as $T).is_multiple_of(&(0 as $T)));
}

#[test]
Expand Down

0 comments on commit 1656a2f

Please sign in to comment.