Add a test.

This commit is contained in:
Matus Tejiscak 2020-04-14 21:30:04 +02:00
parent 806e8d2569
commit b20ae8d36b
3 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,2 @@
1/1: Building anyfail (anyfail.idr)
anyfail.idr:21:1--22:1:showing (MkEvenMoreComplicated (MkMoreComplicated (MkComplicated (PtrAndSize addr len)))) SomethingVeryComplicatedIs is not a valid impossible case

View File

@ -0,0 +1,13 @@
main : IO ()
main = do
printLn $ 3
printLn $ 4.2
printLn $ "1.2"
printLn $ cast {to = Int} 4.8
printLn $ cast {to = Integer} 1.2
printLn $ cast {to = String} 2.7
printLn $ cast {to = Int} "1.2"
printLn $ cast {to = Integer} "2.7"
printLn $ cast {to = Double} "5.9"

3
tests/idris2/reg016/run Executable file
View File

@ -0,0 +1,3 @@
$1 numbers.idr -x main
rm -rf build