-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from tchoutri/use-ghc-9.10
Use GHC 9.10
- Loading branch information
Showing
10 changed files
with
142 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,35 @@ | ||
module Confer.EvaluatorTest where | ||
|
||
import Control.Monad | ||
import Data.Function | ||
import Data.List.NonEmpty qualified as NE | ||
import Data.Vector qualified as Vector | ||
import Effectful | ||
import Effectful.Error.Static (Error) | ||
import Effectful.Error.Static qualified as Error | ||
import Effectful.FileSystem | ||
import Effectful.FileSystem qualified as FileSystem | ||
import System.FilePath qualified as FilePath | ||
import System.IO.Temp qualified as Temporary | ||
import System.OsPath | ||
import System.OsPath qualified as OsPath | ||
import Test.Tasty (TestTree) | ||
import Test.Tasty.HUnit () | ||
|
||
import Confer.Config.Evaluator | ||
import Utils | ||
|
||
spec :: TestEff TestTree | ||
spec = | ||
testThese | ||
"Evaluator Checks" | ||
[ testThis "Empty configuration" testEmptyConfigurationoError | ||
] | ||
|
||
testEmptyConfigurationoError :: TestEff () | ||
testEmptyConfigurationoError = do | ||
Temporary.withSystemTempDirectory "empty-config.ext" $ \directory -> do | ||
copyFile "./test/fixtures/empty-config.lua" (directory <> "/empty-config.lua") | ||
filepath <- liftIO $ encodeUtf $ directory <> "/empty-config.lua" | ||
result <- assertRight =<< loadConfiguration False filepath | ||
assertEqual result Vector.empty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
return {} |