Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rscarson committed May 16, 2024
1 parent 37bf421 commit 6a7d5a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utilities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ mod test_runtime {
#[test]
fn test_evaluate() {
assert_eq!(5, evaluate::<i64>("3 + 2").expect("invalid expression"));
evaluate::<i64>("5").expect_err("invalid expression");
evaluate::<i64>("a5; 3 + 2").expect_err("Expected an error");
}

#[test]
Expand Down

0 comments on commit 6a7d5a9

Please sign in to comment.