1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00

Merge pull request #698 from Zokrates/fix-interpreter-error-test

Fix interpreter error test
This commit is contained in:
Thibaut Schaeffer 2020-11-10 18:13:19 +00:00 committed by GitHub
commit a26ad93a9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View file

@ -1119,7 +1119,6 @@ mod tests {
}
#[test]
#[should_panic]
fn execute_examples_err() {
//these examples should compile but not run
for p in glob("./examples/runtime_errors/*").expect("Failed to read glob pattern") {
@ -1143,9 +1142,9 @@ mod tests {
let interpreter = ir::Interpreter::default();
let _ = interpreter
.execute(&artifacts.prog(), &vec![Bn128Field::from(0)])
.unwrap();
let res = interpreter.execute(&artifacts.prog(), &vec![Bn128Field::from(0)]);
assert!(res.is_err());
}
}
}

View file

@ -155,7 +155,6 @@ impl Interpreter {
res.push(T::zero());
}
}
assert_eq!(num, T::zero());
res
}
Solver::Xor => {