tests: fix whitespace
This commit is contained in:
parent
e49a3e9fec
commit
03660fd641
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user