Add self_dependency test.

This commit is contained in:
Casey Rodarmor 2016-10-23 23:39:56 -07:00
parent 9aed7ca129
commit 40788ebabd

View File

@ -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";