test: test for Int.mod bug
This commit is contained in:
parent
c4cfbceb71
commit
60805b5c0c
2 changed files with 17 additions and 0 deletions
9
tests/lean/intModBug.lean
Normal file
9
tests/lean/intModBug.lean
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#reduce (10 : Int) % 0
|
||||
#reduce (-10 : Int) % 0
|
||||
#eval (10:Int) % 0
|
||||
#eval (-10 : Int) % 0
|
||||
|
||||
#reduce (10000000000000000000000000000000000 : Int) % 0
|
||||
#reduce (-10000000000000000000000000000000000 : Int) % 0
|
||||
#eval (10000000000000000000000000000000000:Int) % 0
|
||||
#eval (-10000000000000000000000000000000000 : Int) % 0
|
||||
8
tests/lean/intModBug.lean.expected.out
Normal file
8
tests/lean/intModBug.lean.expected.out
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
Int.ofNat 10
|
||||
Int.negSucc 9
|
||||
10
|
||||
9
|
||||
Int.ofNat 10000000000000000000000000000000000
|
||||
Int.negSucc 9999999999999999999999999999999999
|
||||
10000000000000000000000000000000000
|
||||
9999999999999999999999999999999999
|
||||
Loading…
Add table
Reference in a new issue