Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
matsantoro committed Apr 26, 2021
1 parent aa6fd93 commit 1674163
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test_graph_count.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@

class TestRepeatCounts(unittest.TestCase):
def test_1_biedge_in_simplex(self):
simplex3 = np.ones((4, 4), dtype=int) - np.diag(np.ones(4, dtype=int))
simplex3 = np.triu(np.ones((4, 4), dtype=int)) - np.diag(np.ones(4, dtype=int))
simplex3[3, 2] = 1
self.assertEqual(
biedge_count_per_dimension(simplex3),
{1: 2, 2: 4, 3: 2}
)

simplex4 = np.ones((4, 4), dtype=int) - np.diag(np.ones(4, dtype=int))
simplex4 = np.triu(np.ones((4, 4), dtype=int)) - np.diag(np.ones(4, dtype=int))
simplex4[4, 3] = 1
self.assertEqual(
biedge_count_per_dimension(simplex4),
{1: 2, 2: 6, 3: 4, 4: 2}
)

def test_2_biedge_in_simplex(self):
simplex3 = np.ones((4, 4), dtype=int) - np.diag(np.ones(4, dtype=int))
simplex3 = np.triu(np.ones((4, 4), dtype=int)) - np.diag(np.ones(4, dtype=int))
simplex3[3, 2] = 1
simplex3[2, 1] = 1
self.assertEqual(
Expand All @@ -34,20 +34,20 @@ def test_2_biedge_in_simplex(self):

class TestNoRepeatCounts(unittest.TestCase):
def test_1_biedge_in_simplex(self):
simplex3 = np.ones((4, 4), dtype=int) - np.diag(np.ones(4, dtype=int))
simplex3 = np.triu(np.ones((4, 4), dtype=int)) - np.diag(np.ones(4, dtype=int))
simplex3[3, 2] = 1
self.assertEqual(
biedge_count_per_dimension(simplex3, repeats=False),
{3: 1}
)

def test_2_biedge_in_simplex(self):
simplex3 = np.ones((4, 4), dtype=int) - np.diag(np.ones(4, dtype=int))
simplex3 = np.triu(np.ones((4, 4), dtype=int)) - np.diag(np.ones(4, dtype=int))
simplex3[3, 2] = 1
simplex3[2, 1] = 1
self.assertEqual(
biedge_count_per_dimension(simplex3, repeats=False),
{1: 4, 2: 10, 3: 6}
{3: 2}
)


Expand Down

0 comments on commit 1674163

Please sign in to comment.