MCPcopy Create free account
hub / github.com/google-deepmind/alphageometry / test_comb4

Method test_comb4

graph_utils_test.py:51–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49 )
50
51 def test_comb4(self):
52 self.assertEqual(gu.comb4([]), [])
53 self.assertEqual(gu.comb4([1]), [])
54 self.assertEqual(gu.comb4([1, 2]), [])
55 self.assertEqual(gu.comb4([1, 2, 3]), [])
56 self.assertEqual(gu.comb4([1, 2, 3, 4]), [(1, 2, 3, 4)])
57 self.assertEqual(
58 gu.comb4([1, 2, 3, 4, 5]),
59 [(1, 2, 3, 4), (1, 2, 3, 5), (1, 2, 4, 5), (1, 3, 4, 5), (2, 3, 4, 5)],
60 )
61
62 def test_perm2(self):
63 self.assertEqual(gu.perm2([]), [])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected