mirror of
https://github.com/LucasVbr/croissant.git
synced 2026-07-09 15:07:48 +00:00
Feat: Add Character, String and float literals
This commit is contained in:
@@ -7,6 +7,9 @@ let test_pp_expressions () =
|
||||
( "Should return \"Literal(...)\"",
|
||||
"Literal(Integer(1))",
|
||||
Expressions.Literal (Literals.Integer 1) );
|
||||
( "Should return \"Identifier(...)\"",
|
||||
"Identifier(\"myVar\")",
|
||||
Expressions.Identifier "myVar" );
|
||||
( "Should return \"UnaryExpression(...)\"",
|
||||
"UnaryExpression(ArithmeticNegation, Literal(Integer(2)))",
|
||||
Expressions.UnaryExpression
|
||||
|
||||
Reference in New Issue
Block a user