feat: allow importing off validators in validators/tests/*

This commit is contained in:
rvcas
2023-12-11 18:27:08 -05:00
parent b25e82ed36
commit 07122aaa88
4 changed files with 43 additions and 75 deletions

View File

@@ -66,25 +66,6 @@ fn validator_illegal_return_type() {
))
}
#[test]
fn validator_useless_pub() {
let source_code = r#"
type Datum {
thing: Int
}
validator {
pub fn foo(_d: Datum, _r, _c) {
True
}
}
"#;
let (warnings, _) = check_validator(parse(source_code)).unwrap();
assert!(matches!(warnings[0], Warning::PubInValidatorModule { .. }))
}
#[test]
fn validator_illegal_arity() {
let source_code = r#"