[fine] OK
This commit is contained in:
parent
50eb7a9673
commit
65fef78c44
10 changed files with 81 additions and 25 deletions
|
|
@ -20,7 +20,7 @@ fn generate_test_for_file(path: PathBuf) -> String {
|
|||
};
|
||||
|
||||
let line = line.trim();
|
||||
if line == "@disabled" {
|
||||
if line == "@ignore" {
|
||||
disabled = quote! { #[ignore] };
|
||||
} else if line == "@concrete:" {
|
||||
let mut concrete = String::new();
|
||||
|
|
@ -78,6 +78,10 @@ fn generate_test_for_file(path: PathBuf) -> String {
|
|||
assertions.push(quote! {
|
||||
crate::assert_type_error_at(&_tree, &_lines, #pos, #expected, #display_path);
|
||||
});
|
||||
} else if line == "@no-errors" {
|
||||
assertions.push(quote! {
|
||||
crate::assert_no_errors(&_tree, &_lines);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue