Add another lexer unit test to find a straight integer
This commit is contained in:
parent
8c83f884bf
commit
6eb2f930a6
1 changed files with 1 additions and 0 deletions
|
@ -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)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue