Check single character identifiers: +, -
This commit is contained in:
		
							parent
							
								
									d63494fc32
								
							
						
					
					
						commit
						7b4d3c62b9
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue