Add another lexer unit test to find a straight integer

This commit is contained in:
Eryn Wells 2017-04-08 16:12:00 -07:00
parent 8c83f884bf
commit 6eb2f930a6

View file

@ -652,6 +652,7 @@ mod tests {
#[test]
fn finds_numbers() {
check_single_token("34", Token::Number(Number::from_float(34.0)));
check_single_token(".34", Token::Number(Number::from_float(0.34)));
check_single_token("0.34", Token::Number(Number::from_float(0.34)));
}