We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85510b7 commit edef21eCopy full SHA for edef21e
1 file changed
tests/path_test.py
@@ -956,8 +956,10 @@ def test_feedback_no_circuit(self, path_graph_4):
956
"""Test feedback when no circuit exists."""
957
result = check_hamiltonian_existence(path_graph_4, find_circuit=True)
958
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
961
# Feedback should mention that no circuit exists
- 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)
963
964
965
# =============================================================================
0 commit comments