Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
19
tests/ui/numbers-arithmetic/div-mod.rs
Normal file
19
tests/ui/numbers-arithmetic/div-mod.rs
Normal file
|
@ -0,0 +1,19 @@
|
|||
// run-pass
|
||||
|
||||
|
||||
|
||||
|
||||
pub fn main() {
|
||||
let x: isize = 15;
|
||||
let y: isize = 5;
|
||||
assert_eq!(x / 5, 3);
|
||||
assert_eq!(x / 4, 3);
|
||||
assert_eq!(x / 3, 5);
|
||||
assert_eq!(x / y, 3);
|
||||
assert_eq!(15 / y, 3);
|
||||
assert_eq!(x % 5, 0);
|
||||
assert_eq!(x % 4, 3);
|
||||
assert_eq!(x % 3, 0);
|
||||
assert_eq!(x % y, 0);
|
||||
assert_eq!(15 % y, 0);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue