Changing test names.

This commit is contained in:
Myrddin Dundragon 2025-05-05 18:07:02 -04:00
parent e604bf172b
commit cb882ceb84

View File

@ -53,7 +53,7 @@ fn cleanup_temp_file(path: &PathBuf)
#[test]
fn test_basic_lexing()
fn basic_lexing()
{
let tokens =
Lexer::scan_text("magic runes", dummy_transform).expect("Lexer should \
@ -65,15 +65,14 @@ fn test_basic_lexing()
let expected = vec![(TokenType::Text, "magic".to_string()),
(TokenType::Whitespace, " ".to_string()),
(TokenType::Text, "runes".to_string()),
(TokenType::Newline, "\n".to_string()),];
(TokenType::Text, "runes".to_string()),];
assert_eq!(tokens, expected);
}
#[test]
fn test_symbols_and_numbers()
fn symbols_and_numbers()
{
let tokens =
Lexer::scan_text("13 + 37", dummy_transform).expect("Lexer should \
@ -87,15 +86,14 @@ fn test_symbols_and_numbers()
(TokenType::Whitespace, " ".into()),
(TokenType::Symbol, "+".into()),
(TokenType::Whitespace, " ".into()),
(TokenType::Numeric, "37".into()),
(TokenType::Newline, "\n".into()),];
(TokenType::Numeric, "37".into()),];
assert_eq!(tokens, expected);
}
#[test]
fn test_lexer_with_cases()
fn lexer_with_cases()
{
let cases = vec![TestCase { name: "simple_words",
input: "magic rune",