Skip to content

Commit

Permalink
add comment explaining equality check
Browse files Browse the repository at this point in the history
  • Loading branch information
cvng committed Dec 13, 2023
1 parent a1d6dc3 commit 9d959d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/parser/src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ mod tests {

debug!("selected node: {:#?}", node_graph[node_index]);

// note: even though we test for strict equality of the two vectors the order
// of the properties does not have to match the order of the tokens in the string
assert_eq!(node_graph[node_index].properties, expected);
assert_eq!(node_graph[node_index].properties.len(), expected.len());
}
Expand Down

0 comments on commit 9d959d9

Please sign in to comment.