Skip to content

Commit 73ebcf1

Browse files
isPANNclaude
andcommitted
Fix #995 example-db test compile error
Replace serde_json::json! comparisons with plain Vec<usize> values to match the SolutionPair.source_config/target_config field types. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent c2c20b7 commit 73ebcf1

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

src/unit_tests/rules/minimumdiscreteplanarinversekinematics_qubo.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,6 @@ fn test_minimumdiscreteplanarinversekinematics_to_qubo_canonical_example_spec()
103103
);
104104
assert_eq!(example.target.problem, "QUBO");
105105
assert_eq!(example.target.instance["num_vars"], 4);
106-
assert_eq!(
107-
example.solutions[0].source_config,
108-
serde_json::json!([0, 1])
109-
);
110-
assert_eq!(
111-
example.solutions[0].target_config,
112-
serde_json::json!([1, 0, 0, 1])
113-
);
106+
assert_eq!(example.solutions[0].source_config, vec![0_usize, 1]);
107+
assert_eq!(example.solutions[0].target_config, vec![1_usize, 0, 0, 1]);
114108
}

0 commit comments

Comments
 (0)