Impossible diet detection test fails
Here is the log while running make check
collected 9 items
tests/test_buggy_example.py . [ 11%] tests/test_cpp_tree_dec_coloring.py ..... [ 66%] tests/test_impossible_diet_detection.py F [ 77%] tests/test_tiny_example.py .. [100%]
=================================== FAILURES =================================== ______________________________ test_tiny_obstacle ______________________________
def test_tiny_obstacle(): R = Bag([0,1,2,3]) B1 = Bag([3,5]) B2 = Bag([3,4]) R.add_child(B1) R.add_child(B2) important_edges = [(3,5),(3,4)] target_width = 2 assert(impossible_diet(R, target_width, important_edges))
E assert False E + where False = impossible_diet(<graph_classes.Bag object at 0x7f8ff5413a30>, 2, [(3, 5), (3, 4)])
tests/test_impossible_diet_detection.py:17: AssertionError =========================== short test summary info ============================ FAILED tests/test_impossible_diet_detection.py::test_tiny_obstacle - assert False ========================= 1 failed, 8 passed in 1.01s ==========================
change the assertion to below works
assert(not impossible_diet(R, target_width, important_edges))