[ test ] more corner cases

Making sure the test can distinguish between truncating & rounding.
This commit is contained in:
Guillaume ALLAIS 2020-09-23 19:17:08 +01:00 committed by G. Allais
parent 621a9202ed
commit cc31076849
2 changed files with 58 additions and 0 deletions

View File

@ -1,2 +1,31 @@
Main> "Int"
Main> 12 Main> 12
Main> 12
Main> 12
Main> 12
Main> "Negative Int"
Main> -12
Main> -13
Main> -13
Main> -13
Main> "Integer"
Main> 12
Main> 12
Main> 12
Main> 12
Main> "Negative Integer"
Main> -12
Main> -13
Main> -13
Main> -13
Main> "Double"
Main> 12.0
Main> 12.3
Main> 12.5
Main> 12.7
Main> "Negative Double"
Main> -12.0
Main> -12.3
Main> -12.5
Main> -12.7
Main> Bye for now! Main> Bye for now!

View File

@ -1,2 +1,31 @@
"Int"
the Int (cast "12.0")
the Int (cast "12.3") the Int (cast "12.3")
the Int (cast "12.5")
the Int (cast "12.7")
"Negative Int"
the Int (cast "-12.0")
the Int (cast "-12.3")
the Int (cast "-12.5")
the Int (cast "-12.7")
"Integer"
the Integer (cast "12.0")
the Integer (cast "12.3")
the Integer (cast "12.5")
the Integer (cast "12.7")
"Negative Integer"
the Integer (cast "-12.0")
the Integer (cast "-12.3")
the Integer (cast "-12.5")
the Integer (cast "-12.7")
"Double"
the Double (cast "12.0")
the Double (cast "12.3")
the Double (cast "12.5")
the Double (cast "12.7")
"Negative Double"
the Double (cast "-12.0")
the Double (cast "-12.3")
the Double (cast "-12.5")
the Double (cast "-12.7")
:q :q