• Errors in asserts

 

I would like to give some feedback about ...

From: http://www.checkio.org/mission/break-rings/solve/

HTTP_USER_AGENT:

Mozilla/5.0 (Windows NT 5.1; rv:44.0) Gecko/20100101 Firefox/44.0

  1. assert break_rings(({1, 2}, {1, 3}, {1, 4}, {2, 3}, {2, 4}, {3, 4})) == 3, "All to all"

The correct answer must be 1. Not 3.

2. assert break_rings(({8, 9}, {1, 9}, {1, 2}, {2, 3}, {3, 4}, {4, 5}, {5, 6}, {6, 7}, {8, 7})) == 5, "Long chain" The correct answer must be 4. Not 5.

(For cyclic chein of N length the answer must be N//2)