Exemplo n.º 1
0
    def test_01(self):
        l = [
            (0, 2),
            (1, 3),
            (0, 4),
            (2, 5),
            (3, 6),
        ]
        hyp = SpanTool.span_list2indexes_uncovered(l)
        ref = {2, 3, 4}

        self.assertEqual(hyp, ref)
Exemplo n.º 2
0
    def test_03(self):
        l = [
            (0, 4),
            (2, 6),
            (1, 3),
            (0, 4),
            (0, 3),
        ]

        hyp = SpanTool.span_list2indexes_uncovered(l)
        ref = {0, 1, 3}

        self.assertEqual(hyp, ref)