Improved modulo tests

This commit is contained in:
Eduard Urbach 2024-07-25 12:21:10 +02:00
parent a31731a84d
commit f68c50247f
Signed by: eduard
GPG key ID: 49226B848C78F6C8
2 changed files with 17 additions and 9 deletions

View file

@ -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)
}