Allow type error config in uitest

This commit is contained in:
Ayaz Hafiz 2023-04-12 14:04:51 -05:00
parent f33651bf6a
commit 677d19d825
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 3 additions and 1 deletions

View file

@ -254,6 +254,7 @@ impl<'a> TestCase<'a> {
for infer_opt in found_infer_opts {
let opt = infer_opt.name("opt").unwrap().as_str();
match opt.trim() {
"allow_errors" => infer_opts.allow_errors = true,
"print_only_under_alias" => infer_opts.print_only_under_alias = true,
other => return Err(format!("unknown infer option: {other:?}").into()),
}