diff --git a/src/tests.rs b/src/tests.rs index 8eb6745..03cad6c 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -292,6 +292,19 @@ fn circular_dependency() { }); } +#[test] +fn self_dependency() { + let text = "a: a"; + parse_error(text, Error { + text: text, + index: 3, + line: 0, + column: 3, + width: Some(1), + kind: ErrorKind::CircularDependency{recipe: "a", circle: vec!["a", "a"]} + }); +} + #[test] fn unknown_dependency() { let text = "a: b";