mirror of
https://github.com/anoma/juvix.git
synced 2025-01-05 22:46:08 +03:00
98b1daec7d
Print JuvixCore InfoTable in such a way that it can be parsed back by the JuvixCore parser. * Depends on PR #1832 * Depends on PR #1862 * Closes #1841 * Adds "JuvixCore print" tests which read the files from Core/positive/*.jvc, print them, read them back and check if the evaluation results are preserved. --------- Co-authored-by: Jan Mas Rovira <janmasrovira@gmail.com>
16 lines
311 B
Haskell
16 lines
311 B
Haskell
module Core.Print.Positive where
|
|
|
|
import Base
|
|
import Core.Eval.Positive qualified as Eval
|
|
import Core.Print.Base
|
|
|
|
allTests :: TestTree
|
|
allTests = testGroup "JuvixCore print tests" (map liftTest Eval.tests)
|
|
|
|
liftTest :: Eval.PosTest -> TestTree
|
|
liftTest _testEval =
|
|
fromTest
|
|
Test
|
|
{ _testEval
|
|
}
|