summaryrefslogtreecommitdiff
path: root/src/tests/errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/errors.rs')
-rw-r--r--src/tests/errors.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tests/errors.rs b/src/tests/errors.rs
new file mode 100644
index 0000000..abe1bbb
--- /dev/null
+++ b/src/tests/errors.rs
@@ -0,0 +1,12 @@
+use crate::Configuration;
+
+#[test]
+fn parsing() {
+ super::do_tests_in_dir("errors", ".pom", |filename| {
+ if Configuration::load_path(filename).is_ok() {
+ Err(format!("should produce an error, but doesn't").into())
+ } else {
+ Ok(())
+ }
+ })
+}