on master help sign in
Add new regression test
ac446bdEdwin Brady
idris.cabal+3
@@ -211,6 +211,9 @@ Extra-source-files:
211 test/reg033/run
211 test/reg033/run
212 test/reg033/*.idr
212 test/reg033/*.idr
213 test/reg033/expected
213 test/reg033/expected
214+ test/reg034/run
215+ test/reg034/*.idr
216+ test/reg034/expected
214
217
215 test/basic001/run
218 test/basic001/run
216 test/basic001/*.idr
219 test/basic001/*.idr
test/reg034/expectednew file+22
@@ -0,0 +1,22 @@
1+reg034.idr:6:5:When elaborating left hand side of bar:
2+Can't unify
3+ length ys = length ys
4+with
5+ length xs = length ys
6+
7+Specifically:
8+ Can't unify
9+ length ys
10+ with
11+ length xs
12+reg034.idr:9:5:When elaborating left hand side of foo:
13+Can't unify
14+ f y = f y
15+with
16+ f x = f y
17+
18+Specifically:
19+ Can't unify
20+ f y
21+ with
22+ f x
test/reg034/reg034.idrnew file+10
@@ -0,0 +1,10 @@
1+module main
2+import Prelude.List
3+
4+bar : (xs : List ()) -> (ys : List ()) ->
5+ Prelude.List.length xs = Prelude.List.length ys -> xs = ys
6+bar xs xs refl = refl
7+
8+foo : (f : Nat -> Nat) -> (x : Nat) -> (y : Nat) -> f x = f y -> x = y
9+foo f x x refl = refl
10+
test/reg034/runnew file+3
@@ -0,0 +1,3 @@
1+#!/usr/bin/env bash
2+idris --check reg034.idr
3+rm -f reg034 *.ibc