Skip to content

Commit

Permalink
[test] Modifying test case to match new conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
didierofrivia committed Jul 26, 2023
1 parent 5ab14db commit 3338b08
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions limitador/src/limit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -778,13 +778,13 @@ mod conditions {
#[test]
fn test_charset() {
let tokens =
Scanner::scan(" 変数 == ' 💖 '".to_owned()).expect("Should parse alright!");
Scanner::scan(" love.en-US/愛.jp == ' 💖 '".to_owned()).expect("Should parse alright!");
assert_eq!(tokens.len(), 3);
assert_eq!(
tokens[0],
Token {
token_type: TokenType::Identifier,
literal: Some(Identifier("変数".to_owned())),
literal: Some(Identifier("love.en-US/愛.jp".to_owned())),
pos: 2,
}
);
Expand All @@ -793,15 +793,15 @@ mod conditions {
Token {
token_type: TokenType::EqualEqual,
literal: None,
pos: 5,
pos: 18,
}
);
assert_eq!(
tokens[2],
Token {
token_type: TokenType::String,
literal: Some(Literal::String(" 💖 ".to_owned())),
pos: 8,
pos: 21,
}
);
}
Expand Down

0 comments on commit 3338b08

Please sign in to comment.