We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edef21e commit 326d27dCopy full SHA for 326d27d
1 file changed
tests/path_test.py
@@ -958,8 +958,8 @@ def test_feedback_no_circuit(self, path_graph_4):
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
962
- assert any("no hamiltonian" in f.lower() or "does not exist" in f.lower() for f in feedback)
+ # Feedback should mention that no circuit exists (either explicitly or via "not enough edges")
+ assert any("no hamiltonian" in f.lower() or "does not exist" in f.lower() or "not enough edges" in f.lower() for f in feedback)
963
964
965
# =============================================================================
0 commit comments