From b8799233f89df1c4176f1cb166898e6c60ab19af Mon Sep 17 00:00:00 2001 From: xqtc161 Date: Wed, 10 Jul 2024 19:28:54 +0200 Subject: [PATCH] Remove redundant `test_` for test functions --- src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 62cd45b..71b83d1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -172,7 +172,7 @@ mod tests { use super::*; #[test] - fn test_whitespace() { + fn whitespace() { let source_code = " \t\n"; let mut lexer = Lexer::new(source_code); let tokens = lexer.get_tokens(); @@ -180,7 +180,7 @@ mod tests { } #[test] - fn test_identifier() { + fn identifier() { let source_code = "variableName"; let mut lexer = Lexer::new(source_code); let tokens = lexer.get_tokens(); @@ -194,7 +194,7 @@ mod tests { } #[test] - fn test_keyword() { + fn keyword() { let source_code = "uniform"; let mut lexer = Lexer::new(source_code); let tokens = lexer.get_tokens(); @@ -205,7 +205,7 @@ mod tests { } #[test] - fn test_integer_literal() { + fn integer_literal() { let source_code = "12345"; let mut lexer = Lexer::new(source_code); let tokens = lexer.get_tokens(); @@ -213,7 +213,7 @@ mod tests { } #[test] - fn test_float_literal() { + fn float_literal() { let source_code = "123.45"; let mut lexer = Lexer::new(source_code); let tokens = lexer.get_tokens();