Skip to content
Snippets Groups Projects
Commit 06a91f5e authored by Alexander Schultheiß's avatar Alexander Schultheiß
Browse files

Added assertion

parent b53b3dcf
Branches
No related merge requests found
......@@ -18,6 +18,8 @@ fn url_lexer() -> Result<(), Box<dyn Error>> {
tokens.push(parse_result);
}
assert_eq!(tokens.len(), 2);
for (parsed, expected) in tokens.iter().zip(expected_tokens.lines()) {
assert_eq!(parsed, expected);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment