Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

fix(core): one more broken test

Elijah Potterc1903220df6a
diff --git a/harper-core/src/lexing/mod.rs b/harper-core/src/lexing/mod.rs
index 62aea5d7e..ccaa6ba12 100644
--- a/harper-core/src/lexing/mod.rs
+++ b/harper-core/src/lexing/mod.rs
@@ -308,6 +308,7 @@ fn lex_catch(_source: &[char]) -> Option<FoundToken> {
#[cfg(test)]
mod tests {
+ use crate::Punctuation;
use crate::lexing::lex_plural_digit;
use super::lex_hex_number;
@@ -547,8 +548,8 @@ mod tests {
assert_eq!(
lex_token(&source),
Some(FoundToken {
- token: TokenKind::Regexish,
- next_index: 7
+ token: TokenKind::Punctuation(Punctuation::OpenSquare),
+ next_index: 1
})
);
}