Idris2/tests/idris2/coverage003/Cover.idr
Edwin Brady a972778eab Add test script
They don't all pass yet, for minor reasons. Coming shortly...
Unfortunately the startup overhead for chez is really noticeable here!
2020-05-19 18:25:18 +01:00

16 lines
225 B
Idris

foo : (Nat, Nat) -> Nat
foo (Z, Z) = Z
bar : {a : _} -> a -> Nat
bar Z = Z
bar (S _) = S Z
cty : (a : Type) -> a -> Nat
cty Nat Z = Z
cty Nat (S _) = S Z
cty _ x = S (S Z)
badBar : a -> Nat
badBar Z = Z
badBar (S _) = S Z