General refactor for legibility

Priming to update all source to lhs and document extensively
This commit is contained in:
2025-01-19 14:41:25 -06:00
committed by James Eversole
parent 63aa977efd
commit e6e05b607a
6 changed files with 127 additions and 171 deletions

View File

@ -31,7 +31,6 @@ tests = testGroup "Tricu Tests"
, lambdaEvalTests
, libraryTests
, fileEvaluationTests
, propertyTests
]
lexerTests :: TestTree
@ -414,13 +413,3 @@ fileEvaluationTests = testGroup "Evaluation tests"
res <- liftIO $ evaluateFileWithContext library "./test/string.tri"
decodeResult (result res) @?= "\"String test!\""
]
propertyTests :: TestTree
propertyTests = testGroup "Property Tests"
[ testProperty "Lexing and parsing round-trip" $ \input ->
case runParser tricuLexer "" input of
Left _ -> property True
Right tokens -> case runParser parseExpression "" tokens of
Left _ -> property True
Right ast -> parseSingle input === ast
]