aboutsummaryrefslogtreecommitdiff
path: root/tests/test_parse.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_parse.rs')
-rw-r--r--tests/test_parse.rs13
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/test_parse.rs b/tests/test_parse.rs
index cb39b31..95064ee 100644
--- a/tests/test_parse.rs
+++ b/tests/test_parse.rs
@@ -1,4 +1,8 @@
-#![allow(clippy::enum_glob_use, clippy::must_use_candidate)]
+#![allow(
+ clippy::derive_partial_eq_without_eq,
+ clippy::enum_glob_use,
+ clippy::must_use_candidate
+)]
include!("../build/rustc.rs");
@@ -89,6 +93,11 @@ fn test_parse() {
];
for (string, expected) in cases {
- assert_eq!(parse(string).unwrap(), *expected);
+ match parse(string) {
+ ParseResult::Success(version) => assert_eq!(version, *expected),
+ ParseResult::OopsClippy | ParseResult::Unrecognized => {
+ panic!("unrecognized: {:?}", string);
+ }
+ }
}
}