Idris2/tests/idris2/coverage006/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

21 lines
336 B
Idris

import Data.Fin
data NNat = NZ | NS NNat
zsym : (x : NNat) -> x = NZ -> NZ = x
zsym NZ Refl = Refl
zsym (NS _) Refl impossible
zsym' : (x : NNat) -> x = NZ -> NZ = x
zsym' NZ Refl = Refl
foo : Nat -> String
foo 0 = "zero"
foo 1 = "one"
foo x = "something else"
bar : Fin (S (S (S Z))) -> String
bar 0 = "a"
bar 1 = "b"
bar 2 = "c"