Improved modulo tests
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user