Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
f01dab1e committed Oct 12, 2023
1 parent e232e2e commit 3702db0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions compiler/noirc_frontend/src/lexer/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ mod tests {

let mut lexer = Lexer::new(input);
for token in expected.into_iter() {
let got = lexer.next_token().unwrap();
let got = lexer.next().unwrap().unwrap();
assert_eq!(got, token);
}
}
Expand Down Expand Up @@ -657,7 +657,7 @@ mod tests {

let mut lexer = Lexer::new(input);
for token in expected.into_iter() {
let got = lexer.next_token().unwrap();
let got = lexer.next().unwrap().unwrap();
assert_eq!(got, token);
}
}
Expand All @@ -681,7 +681,7 @@ mod tests {

let mut lexer = Lexer::new(input);
for token in expected.into_iter() {
let got = lexer.next_token().unwrap();
let got = lexer.next().unwrap().unwrap();
assert_eq!(got, token);
}
}
Expand Down Expand Up @@ -711,7 +711,7 @@ mod tests {

let mut lexer = Lexer::new(input);
for token in expected.into_iter() {
let first_lexer_output = lexer.next_token().unwrap();
let first_lexer_output = lexer.next().unwrap().unwrap();
assert_eq!(first_lexer_output, token);
}
}
Expand All @@ -733,7 +733,7 @@ mod tests {

let mut lexer = Lexer::new(input);
for token in expected.into_iter() {
let first_lexer_output = lexer.next_token().unwrap();
let first_lexer_output = lexer.next().unwrap().unwrap();
assert_eq!(first_lexer_output, token);
}
}
Expand All @@ -755,7 +755,7 @@ mod tests {

let mut lexer = Lexer::new(input);
for token in expected.into_iter() {
let first_lexer_output = lexer.next_token().unwrap();
let first_lexer_output = lexer.next().unwrap().unwrap();
assert_eq!(first_lexer_output, token);
}
}
Expand All @@ -772,7 +772,7 @@ mod tests {
let mut lexer = Lexer::new(input);

for token in expected.into_iter() {
let got = lexer.next_token().unwrap();
let got = lexer.next().unwrap().unwrap();
assert_eq!(got, token);
}
}
Expand All @@ -785,7 +785,7 @@ mod tests {
let mut lexer = Lexer::new(input);

for token in expected.into_iter() {
let got = lexer.next_token().unwrap();
let got = lexer.next().unwrap().unwrap();
assert_eq!(got, token);
}
}
Expand Down Expand Up @@ -824,7 +824,7 @@ mod tests {
let mut lexer = Lexer::new(input);

for spanned_token in expected.into_iter() {
let got = lexer.next_token().unwrap();
let got = lexer.next().unwrap().unwrap();
assert_eq!(got.to_span(), spanned_token.to_span());
assert_eq!(got, spanned_token);
}
Expand Down Expand Up @@ -895,7 +895,7 @@ mod tests {
let mut lexer = Lexer::new(input);

for token in expected.into_iter() {
let got = lexer.next_token().unwrap();
let got = lexer.next().unwrap().unwrap();
assert_eq!(got, token);
}
}
Expand Down

0 comments on commit 3702db0

Please sign in to comment.