Add self_dependency test.
This commit is contained in:
parent
9aed7ca129
commit
40788ebabd
13
src/tests.rs
13
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";
|
||||
|
Loading…
Reference in New Issue
Block a user