make spec parser stricter
Signed-off-by: Onur Özkan <work@onurozkan.dev>
This commit is contained in:
1 parent
4c6ee111e8
commit
b0a7a9bb03
14 files changed
+96
-18
No files matched your search
@@ -5,7 +5,13 @@ fn accepts_existing_sidecar_spec() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn rejects_missing_sidecar_spec() {
|
||||
fn rejects_invalid_spec_uses() {
|
||||
let tests = trybuild::TestCases::new();
|
||||
|
||||
tests.compile_fail("tests/ui/fail_missing_argument.rs");
|
||||
tests.compile_fail("tests/ui/fail_legacy_named_argument.rs");
|
||||
tests.compile_fail("tests/ui/fail_non_string_argument.rs");
|
||||
tests.compile_fail("tests/ui/fail_invalid_suffix.rs");
|
||||
tests.compile_fail("tests/ui/fail_missing_sidecar.rs");
|
||||
tests.compile_fail("tests/ui/fail_non_module_item.rs");
|
||||
}
|
||||
Reference in new issue
Block a user