[ test ] fix test suite output

This commit is contained in:
Guillaume ALLAIS 2021-02-15 09:56:48 +00:00 committed by André Videla
parent 440e60a00b
commit 059074fe14
7 changed files with 43 additions and 20 deletions

View File

@ -15,23 +15,27 @@ Lambda.idr:62:3--88:9
Error: Couldn't parse declaration.
Bad1.idr:3:1--3:2
|
1 | module Bad1
2 |
3 | data Bad = BadDCon (x : Nat)
| ^
^
1/1: Building Bad2 (Bad2.idr)
Error: Expected 'case', 'if', 'do', application or operator expression.
Bad2.idr:3:13--3:14
|
1 | module Bad2
2 |
3 | badReturn : (whatever : Int)
| ^
^
1/1: Building Bad3 (Bad3.idr)
Error: Couldn't parse declaration.
Bad3.idr:4:1--4:2
|
1 | module Bad3
2 |
3 | badExpr : ()
4 | badExpr (whatever : ())
| ^
^

View File

@ -2,7 +2,9 @@
Error: Bracket is not properly closed.
PError.idr:4:7--4:8
|
1 | foo : Int -> Int
2 | foo x = x
3 |
4 | bar : (Int -> Int
| ^
^

View File

@ -2,7 +2,10 @@
Error: Bracket is not properly closed.
PError.idr:5:23--5:24
|
1 | foo : Int -> Int
2 | foo x = x
3 |
4 | bar : Int -> Int
5 | bar x = let y = 42 in (y + x
| ^
^

View File

@ -2,15 +2,21 @@
Error: Bracket is not properly closed.
PError.idr:5:17--5:18
|
1 | foo : Int -> Int
2 | foo x = x
3 |
4 | bar : Int -> Int
5 | bar x = let y = (42 in y + x
| ^
^
1/1: Building PError2 (PError2.idr)
Error: Bracket is not properly closed.
PError2.idr:5:18--5:19
|
1 | foo : Int -> Int
2 | foo x = x
3 |
4 | bar : Int -> Int
5 | bar x = let y := (42 in y + x
| ^
^

View File

@ -2,7 +2,9 @@
Error: Wrong number of 'with' arguments.
PError.idr:4:33--4:34
|
1 | foo : Nat -> Nat -> Bool
2 | foo x y with (x == y)
3 | foo x y | True with (y == x)
4 | foo x y | True | False | 10 = x
| ^
^

View File

@ -2,7 +2,10 @@
Error: Expected 'in'.
PError.idr:7:1--7:2
|
3 |
4 | bar : Int -> Int
5 | bar x = let y = 42
6 |
7 | baz : Int -> Int
| ^
^

View File

@ -2,7 +2,10 @@
Error: Expected 'else'.
PError.idr:7:1--7:2
|
3 |
4 | bar : Int -> Int
5 | bar x = if x == 95 then 0
6 |
7 | baz : Int -> Int
| ^
^