mirror of
https://github.com/edg-l/PascalMLIR.git
synced 2024-10-18 06:53:47 +00:00
string
This commit is contained in:
parent
4cf7ade8e8
commit
86013c13e5
|
@ -65,5 +65,9 @@ mod test {
|
|||
check("-0.1", ast::Constant::Number(ast::Number::Real("-0.1")));
|
||||
check("2.2", ast::Constant::Number(ast::Number::Real("2.2")));
|
||||
check("1e10", ast::Constant::Number(ast::Number::Real("1e10")));
|
||||
|
||||
|
||||
check(r#""hello world""#, ast::Constant::String("\"hello world\""));
|
||||
check(r#""\"hell\"o world""#, ast::Constant::String("\"\\\"hell\\\"o world\""));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue