This commit is contained in:
Edgar 2023-12-14 11:06:46 +01:00
parent 4cf7ade8e8
commit 86013c13e5
No known key found for this signature in database
GPG key ID: 70ADAE8F35904387

View file

@ -65,5 +65,9 @@ mod test {
check("-0.1", ast::Constant::Number(ast::Number::Real("-0.1"))); check("-0.1", ast::Constant::Number(ast::Number::Real("-0.1")));
check("2.2", ast::Constant::Number(ast::Number::Real("2.2"))); check("2.2", ast::Constant::Number(ast::Number::Real("2.2")));
check("1e10", ast::Constant::Number(ast::Number::Real("1e10"))); 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\""));
} }
} }