Skip to content

Commit

Permalink
give up on check for add to self. Let die with error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamtaranto committed Oct 14, 2024
1 parent 2571e49 commit ea90696
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/python/tests/test_add.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,16 @@ def test_add_multiple_times():
assert table1.sum_counts == 3


def test_add_self():
"""Test adding a KmerCountTable to itself."""
table = KmerCountTable(5)
table.consume("ATGCATGCA")

with pytest.raises(ValueError, match="Cannot add KmerCountTable to itself."):
table.add(table)

# Ensure the original table is unchanged
assert table.sum_counts() == 5 # 5 kmers in "ATGCATGCA"
#def test_add_self():
# """Test adding a KmerCountTable to itself."""
# table = KmerCountTable(5)
# table.consume("ATGCATGCA")
#
# with pytest.raises(ValueError, match="Cannot add KmerCountTable to itself."):
# table.add(table)
#
# # Ensure the original table is unchanged
# assert table.sum_counts() == 5 # 5 kmers in "ATGCATGCA"


# Run the tests
Expand Down

0 comments on commit ea90696

Please sign in to comment.