Fix critical list evaluation bug and REPL updates
This commit is contained in:
		
							
								
								
									
										10
									
								
								test/Spec.hs
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								test/Spec.hs
									
									
									
									
									
								
							| @ -320,17 +320,17 @@ libraryTests = testGroup "Library Tests" | ||||
|       library <- evaluateFile "./lib/base.tri" | ||||
|       let input = "test t" | ||||
|           env = decodeResult $ result $ evalTricu library (parseTricu input) | ||||
|       env @?= "Leaf" | ||||
|       env @?= "\"Leaf\"" | ||||
|   , testCase "Triage test (Stem Leaf)" $ do | ||||
|       library <- evaluateFile "./lib/base.tri" | ||||
|       let input = "test (t t)" | ||||
|           env = decodeResult $ result $ evalTricu library (parseTricu input) | ||||
|       env @?= "Stem" | ||||
|       env @?= "\"Stem\"" | ||||
|   , testCase "Triage test (Fork Leaf Leaf)" $ do | ||||
|       library <- evaluateFile "./lib/base.tri" | ||||
|       let input = "test (t t t)" | ||||
|           env = decodeResult $ result $ evalTricu library (parseTricu input) | ||||
|       env @?= "Fork" | ||||
|       env @?= "\"Fork\"" | ||||
|   , testCase "Boolean NOT: true" $ do | ||||
|       library <- evaluateFile "./lib/base.tri" | ||||
|       let input = "not true" | ||||
| @ -390,7 +390,7 @@ libraryTests = testGroup "Library Tests" | ||||
|       library <- evaluateFile "./lib/base.tri" | ||||
|       let input = "lconcat \"Hello, \" \"world!\"" | ||||
|           env = decodeResult $ result $ evalTricu library (parseTricu input) | ||||
|       env @?= "Hello, world!" | ||||
|       env @?= "\"Hello, world!\"" | ||||
|   , testCase "Verifying Equality" $ do | ||||
|       library <- evaluateFile "./lib/base.tri" | ||||
|       let input = "equal (t t t) (t t t)" | ||||
| @ -412,7 +412,7 @@ fileEvaluationTests = testGroup "Evaluation tests" | ||||
|   , testCase "Eval and decoding string" $ do | ||||
|       library <- liftIO $ evaluateFile "./lib/base.tri" | ||||
|       res <- liftIO $ evaluateFileWithContext library "./test/string.tri" | ||||
|       decodeResult (result res) @?= "String test!" | ||||
|       decodeResult (result res) @?= "\"String test!\"" | ||||
|   ] | ||||
|  | ||||
| propertyTests :: TestTree | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 James Eversole
						James Eversole