Merge pull request #3672 from unisonweb/topic/ci-unit-tests

Fix CI to run some (previously skipped) unit tests in unison-parser-typechecker
This commit is contained in:
dolio 2022-12-07 15:38:14 -05:00 committed by GitHub
commit 49432e9b1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 23 additions and 11 deletions

View File

@ -70,8 +70,8 @@ test = do
]
shouldPassPath, shouldFailPath :: String
shouldPassPath = "unison-src/tests"
shouldFailPath = "unison-src/errors"
shouldPassPath = "../unison-src/tests"
shouldFailPath = "../unison-src/errors"
shouldPassNow :: IO [FilePath]
shouldPassNow = find always (extension ==? ".u") shouldPassPath

View File

@ -15,7 +15,8 @@ ex3 = '(let
ex4 = '(
let
use List ++
[1] ++ [3]; [4]
_ = [1] ++ [3]
[4]
)
ex5 = '(

View File

@ -9,7 +9,7 @@ ex2 : x -> y -> x
ex2 a b =
id : ∀ x . x -> x -- doesn't refer the variable in outer scope
id x = x
id 42
_ = id 42
id a
merge : (a -> a -> Boolean) -> [a] -> [a] -> [a]

View File

@ -1,12 +1,23 @@
-- explicit semicolons allowed inside the block parser
-- no need for a space either before or after
x = 0; 1
y = 0;1
z = x;y
(**) = x ; y
a = (**);(**);z
p = 1;-- comments are okay after a semi
x =
_ = 0;
1
y =
_ = 0;
1
z =
_ = x;
y
(**) =
_ = x ;
y
a =
a1 = (**);
a2 = (**);
z
p = _ = 1;-- comments are okay after a semi
1 -- and you can put a semi between lines,
-- even if a virtual semi would have been emitted

View File

@ -66,5 +66,5 @@ fromSeq a =
-- run two thunks in sequence
forceBoth a b =
!a
_ = !a
!b