Additional test

This commit is contained in:
greg 2017-09-12 02:33:21 -07:00
parent d1301b30e6
commit c19946bb6d

View File

@ -548,5 +548,8 @@ mod parse_tests {
fn test_parsing() {
parse_test!("8.1", AST(vec![Expression(FloatLiteral(8.1))]));
parse_test!("0b010", AST(vec![Expression(IntLiteral(2))]));
parse_test!("3; 4; 4.3", AST(
vec![Expression(IntLiteral(3)), Expression(IntLiteral(4)),
Expression(FloatLiteral(4.3))]));
}
}