Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions exercises/practice/dot-dsl/tests/dot-dsl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ fn graph_with_one_edge_with_keywords() {
fn graph_with_one_attribute() {
let graph = Graph::new().with_attrs(&[("foo", "1")]);

let expected_attrs = HashMap::from([("foo".to_string(), "1".to_string())]);
let expected_attrs = HashMap::from([("foo", "1")]);

assert!(graph.nodes.is_empty());

Expand All @@ -108,9 +108,9 @@ fn graph_with_attributes() {
let attrs = vec![("foo", "1"), ("title", "Testing Attrs"), ("bar", "true")];

let expected_attrs = HashMap::from([
("foo".to_string(), "1".to_string()),
("title".to_string(), "Testing Attrs".to_string()),
("bar".to_string(), "true".to_string()),
("foo", "1"),
("title", "Testing Attrs"),
("bar", "true"),
]);

let graph = Graph::new()
Expand Down