Improved modulo tests
This commit is contained in:
parent
60b8ff1308
commit
b8900b518a
2 changed files with 17 additions and 9 deletions
|
@ -29,7 +29,16 @@ main() {
|
|||
sys.exit(1)
|
||||
}
|
||||
|
||||
if 256 % 10 != 6 {
|
||||
x := 256
|
||||
x %= 100
|
||||
|
||||
if x != 56 {
|
||||
sys.exit(1)
|
||||
}
|
||||
|
||||
x %= 10
|
||||
|
||||
if x != 6 {
|
||||
sys.exit(1)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue