From 9d959d9640e6da08a1677f6ca263345217e2b9f6 Mon Sep 17 00:00:00 2001 From: Cedric Vangout Date: Wed, 13 Dec 2023 16:44:55 +0100 Subject: [PATCH] add comment explaining equality check --- crates/parser/src/codegen.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/parser/src/codegen.rs b/crates/parser/src/codegen.rs index 14f236a8..30c5a28c 100644 --- a/crates/parser/src/codegen.rs +++ b/crates/parser/src/codegen.rs @@ -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()); }