more tests

This commit is contained in:
Ophir LOJKINE 2022-03-14 15:30:52 +01:00
parent 9eedc8e93b
commit 004c2c9f03

View File

@ -465,6 +465,12 @@ fn test_no_panic() {
IntType::max_value() IntType::max_value()
)) ))
.is_ok()); .is_ok());
assert!(eval("if").is_err());
assert!(eval("if()").is_err());
assert!(eval("if(true, 1)").is_err());
assert!(eval("if(false, 2)").is_err());
assert!(eval("if(1,1,1)").is_err());
assert!(eval("if(true,1,1,1)").is_err());
} }
#[test] #[test]