Add test for type search

This commit is contained in:
Mathew Polzin 2021-01-03 13:35:58 -08:00
parent 6d82bf2f5d
commit 2b58434b6e
5 changed files with 41 additions and 1 deletions

View File

@ -65,7 +65,7 @@ idrisTests = MkTestPool []
"interactive005", "interactive006", "interactive007", "interactive008",
"interactive009", "interactive010", "interactive011", "interactive012",
"interactive013", "interactive014", "interactive015", "interactive016",
"interactive017", "interactive018",
"interactive017", "interactive018", "interactive019",
-- Interfaces
"interface001", "interface002", "interface003", "interface004",
"interface005", "interface006", "interface007", "interface008",

View File

@ -0,0 +1,7 @@
-- test that defs from Strings are available.
import Data.Strings
-- same signature as a function pulled in from above import
sameSig : Char -> String
sameSig = singleton

View File

@ -0,0 +1,26 @@
1/1: Building TypeSearch (TypeSearch.idr)
Main> prim__cast_CharString : (1 _ : Char) -> String
Main.sameSig : Char -> String
Data.Strings.singleton : Char -> String
Prelude.Types.cast : Char -> String
Prelude.Show.show : Char -> String
Main> Prelude.const : a -> b -> a
Constant function. Ignores its second argument.
Totality: total
Main> Prelude.toUpper : Char -> Char
Convert a letter to the corresponding upper-case letter, if any.
Non-letters are ignored.
Totality: total
Prelude.toLower : Char -> Char
Convert a letter to the corresponding lower-case letter, if any.
Non-letters are ignored.
Totality: total
Main> Bye for now!

View File

@ -0,0 +1,4 @@
:s Char -> String
:s a -> b -> a
:s Char -> Char
:q

View File

@ -0,0 +1,3 @@
$1 --no-banner --no-color --console-width 0 TypeSearch.idr < input
rm -rf build