Skip to content

Commit f2fa9a2

Browse files
authored
Merge pull request #62 from supabase/fix/ignore-prop-order
fix: ignore order of props in test
2 parents eaba873 + 35f2c7e commit f2fa9a2

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

crates/parser/src/codegen.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ mod tests {
6464

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

67-
assert_eq!(node_graph[node_index].properties, expected);
67+
assert!(node_graph[node_index]
68+
.properties
69+
.iter()
70+
.all(|p| { expected.contains(p) }));
71+
assert_eq!(node_graph[node_index].properties.len(), expected.len());
6872
}
6973

7074
#[test]

crates/parser/tests/statement_parser_test.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ fn valid_statements() {
2828
if result.is_err() {
2929
assert!(
3030
false,
31-
"Failed to parse statement {}: {:#?}",
32-
test_name,
33-
result.unwrap_err()
31+
"Failed to parse statement {}:\n{}",
32+
test_name, contents
3433
);
3534
} else {
3635
info!(

0 commit comments

Comments
 (0)