Couple more tests
This commit is contained in:
parent
8c65ae3214
commit
b4f93acbd8
@ -147,5 +147,10 @@ mod tests {
|
|||||||
tokentest!("2 + 1",
|
tokentest!("2 + 1",
|
||||||
"[NumLiteral(2), Identifier(\"+\"), NumLiteral(1), EOF]");
|
"[NumLiteral(2), Identifier(\"+\"), NumLiteral(1), EOF]");
|
||||||
|
|
||||||
|
tokentest!("2.3*49.2",
|
||||||
|
"[NumLiteral(2.3), Identifier(\"*\"), NumLiteral(49.2), EOF]");
|
||||||
|
|
||||||
|
assert_eq!(tokenize("2.4.5"), None);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user