Skip to content

Commit edef21e

Browse files
Ren-createrCopilot
andauthored
fix: fix testing
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 85510b7 commit edef21e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/path_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,8 +956,10 @@ def test_feedback_no_circuit(self, path_graph_4):
956956
"""Test feedback when no circuit exists."""
957957
result = check_hamiltonian_existence(path_graph_4, find_circuit=True)
958958
feedback = get_hamiltonian_feedback(path_graph_4, check_circuit=True, result=result)
959+
# Existence result should indicate that no Hamiltonian circuit exists
960+
assert result.exists is False
959961
# Feedback should mention that no circuit exists
960-
assert any("no hamiltonian" in f.lower() or "does not exist" in f.lower() or result.exists is False for f in feedback)
962+
assert any("no hamiltonian" in f.lower() or "does not exist" in f.lower() for f in feedback)
961963

962964

963965
# =============================================================================

0 commit comments

Comments
 (0)