Skip to content
Snippets Groups Projects
Commit 9e011610 authored by Udo Eisenbarth's avatar Udo Eisenbarth :speech_balloon:
Browse files

Fix unit tests

parent bd8504c5
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ mod test {
#[test]
fn to_dot() {
let node = OpticNode::new("Test", Box::new(NodeDummy));
assert_eq!(node.to_dot(), " \"Test\"\n".to_owned())
assert_eq!(node.to_dot(), "[label=\"Test\"]\n".to_owned())
}
#[test]
fn node_type() {
......
......@@ -135,7 +135,7 @@ mod test {
scenery.add_node(OpticNode::new("Test", Box::new(NodeDummy)));
assert_eq!(
scenery.to_dot(),
"digraph {\n label=\"SceneryTest\"\n \"Test\"\n}"
"digraph {\n label=\"SceneryTest\"\n node_idx_0 [label=\"Test\"]\n}"
);
}
#[test]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment