Check single character identifiers: +, -

This commit is contained in:
Eryn Wells 2016-12-26 11:37:45 -07:00
parent d63494fc32
commit 7b4d3c62b9

View file

@ -234,6 +234,8 @@ mod tests {
#[test]
fn lexer_finds_identifiers() {
check_single_token("abc", Token::Identifier(String::from("abc")));
check_single_token("+", Token::Identifier(String::from("+")));
check_single_token("-", Token::Identifier(String::from("-")));
}
#[test]