tests: fix whitespace

This commit is contained in:
John 2023-09-25 14:31:57 -05:00
parent e49a3e9fec
commit 03660fd641

View File

@ -264,44 +264,44 @@ mod tests {
mod comment { mod comment {
use super::*; use super::*;
#[test] #[test]
fn line_comment() { fn line_comment() {
assert_whole_input_is_token( assert_whole_input_is_token(
"// this is a comment", "// this is a comment",
Lexer::line_comment, Lexer::line_comment,
Type::Comment, Type::Comment,
); );
} }
#[test] #[test]
#[should_panic] #[should_panic]
fn not_line_comment() { fn not_line_comment() {
assert_whole_input_is_token("fn main() {}", Lexer::line_comment, Type::Comment); assert_whole_input_is_token("fn main() {}", Lexer::line_comment, Type::Comment);
} }
#[test] #[test]
fn block_comment() { fn block_comment() {
assert_whole_input_is_token( assert_whole_input_is_token(
"/* this is a comment */", "/* this is a comment */",
Lexer::block_comment, Lexer::block_comment,
Type::Comment, Type::Comment,
); );
} }
#[test] #[test]
#[should_panic] #[should_panic]
fn not_block_comment() { fn not_block_comment() {
assert_whole_input_is_token("fn main() {}", Lexer::block_comment, Type::Comment); assert_whole_input_is_token("fn main() {}", Lexer::block_comment, Type::Comment);
} }
#[test] #[test]
fn shebang_comment() { fn shebang_comment() {
assert_whole_input_is_token( assert_whole_input_is_token(
"#!/ this is a comment", "#!/ this is a comment",
Lexer::shebang_comment, Lexer::shebang_comment,
Type::Comment, Type::Comment,
); );
} }
#[test] #[test]
#[should_panic] #[should_panic]
fn not_shebang_comment() { fn not_shebang_comment() {
assert_whole_input_is_token("fn main() {}", Lexer::shebang_comment, Type::Comment); assert_whole_input_is_token("fn main() {}", Lexer::shebang_comment, Type::Comment);
} }
} }
mod identifier { mod identifier {