Remove redundant test_ for test functions

This commit is contained in:
xqtc161 2024-07-10 19:28:54 +02:00
parent 85ea81a41d
commit b8799233f8

View file

@ -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();