Skip to content

Commit

Permalink
Merge pull request #814 from avh4/fix-test-suite
Browse files Browse the repository at this point in the history
Fix test suite
  • Loading branch information
avh4 authored Apr 1, 2023
2 parents 448c87c + 1d8a68d commit f7a1dba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Shakefile/src/Shakefiles/ElmFormat/IntegrationTests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ rules gitSha elmFormat = do
, "tests/test-files/recursive-directory//*.elm"
, "tests/test-files/*.json"
]
need testFiles
hash <- hashNeed testFiles
cmd_ ("bash" <.> exe) script elmFormat
writeFile' out ""
writeFile' out (unlines $ hash : testFiles)

"_build/tests/test-files/prof.ok" %> \out -> do
let oks =
Expand Down Expand Up @@ -69,7 +69,7 @@ rules gitSha elmFormat = do
let sourceExt = case exampleType of
"from-json" -> "json"
_ -> "elm"
sourceFiles <- ListFiles.read ("_build/list-files/tests/test-files" </> exampleType </> runProfile) sourceExt
sourceFiles <- ListFiles.read ("tests/test-files" </> exampleType </> runProfile) sourceExt
let oks = case exampleType of
"good" -> [ "_build" </> f -<.> "elm_matches" | f <- sourceFiles]
"bad" -> [ "_build" </> f -<.> "elm_bad_matches" | f <- sourceFiles ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ module Main exposing (foo)


foo : Int -> Int -> Int -> Int
foo = \a b c -> a + b + c
foo =
\a b c -> a + b + c

0 comments on commit f7a1dba

Please sign in to comment.