REPL import warning; version info in CLI
Adds the ability to toggle result decoding in REPL. Adds several more useful functions to the base library.
This commit is contained in:
		| @ -468,7 +468,7 @@ baseLibrary = testGroup "Library Tests" | ||||
|  | ||||
|   , testCase "Concatenate strings" $ do | ||||
|       library <- evaluateFile "./lib/base.tri" | ||||
|       let input = "lconcat \"Hello, \" \"world!\"" | ||||
|       let input = "append \"Hello, \" \"world!\"" | ||||
|           env = decodeResult $ result $ evalTricu library (parseTricu input) | ||||
|       env @?= "\"Hello, world!\"" | ||||
|  | ||||
|  | ||||
| @ -1,2 +1,2 @@ | ||||
| x = map (\i : lconcat "Successfully concatenated " i) [("two strings!")] | ||||
| x = map (\i : append "Successfully concatenated " i) [("two strings!")] | ||||
| main = equal? x [("Successfully concatenated two strings!")] | ||||
|  | ||||
| @ -1 +1 @@ | ||||
| head (map (\i : lconcat "String " i) [("test!")]) | ||||
| head (map (\i : append "String " i) [("test!")]) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user