Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
patbuc committed Nov 25, 2023
1 parent f555e01 commit 2a95ff6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/compiler/scanner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,12 +294,12 @@ mod tests {

assert_eq!(x[0].token_type, TokenType::Var);
assert_eq!(x[0].start, 0);
assert_eq!(x[0].length, 3);
assert_eq!(x[0].token, "var");
assert_eq!(x[0].line, 1);

assert_eq!(x[1].token_type, TokenType::Identifier);
assert_eq!(x[1].start, 4);
assert_eq!(x[1].length, 1);
assert_eq!(x[1].token, "a");
assert_eq!(x[1].line, 1);

assert_eq!(x[2].token_type, TokenType::Equal);
Expand All @@ -319,12 +319,12 @@ mod tests {

assert_eq!(x[0].token_type, TokenType::Var);
assert_eq!(x[0].start, 0);
assert_eq!(x[0].length, 3);
assert_eq!(x[0].token, "var");
assert_eq!(x[0].line, 1);

assert_eq!(x[1].token_type, TokenType::Identifier);
assert_eq!(x[1].start, 4);
assert_eq!(x[1].length, 1);
assert_eq!(x[1].token, "a");
assert_eq!(x[1].line, 1);

assert_eq!(x[2].token_type, TokenType::Equal);
Expand Down

0 comments on commit 2a95ff6

Please sign in to comment.