1
1
mirror of https://github.com/anoma/juvix.git synced 2025-01-08 08:39:26 +03:00
juvix/test/Asm/Compile/Positive.hs
Łukasz Czajka 2a8585ede0
Fix bug in IO runtime (#1906)
Co-authored-by: Paul Cadman <git@paulcadman.dev>
2023-03-21 14:34:46 +00:00

23 lines
572 B
Haskell

module Asm.Compile.Positive where
import Asm.Compile.Base
import Asm.Run.Positive qualified as Run
import Base
testDescr :: Run.PosTest -> TestDescr
testDescr Run.PosTest {..} =
let tRoot = Run.root <//> _relDir
file' = tRoot <//> _file
expected' = tRoot <//> _expectedFile
in TestDescr
{ _testName = _name,
_testRoot = tRoot,
_testAssertion = Steps $ asmCompileAssertion file' expected' ""
}
allTests :: TestTree
allTests =
testGroup
"JuvixAsm compile positive tests"
(map (mkTest . testDescr) Run.tests)