Skip to content

Commit

Permalink
update: removed comments
Browse files Browse the repository at this point in the history
Signed-off-by: Jay <[email protected]>
  • Loading branch information
35C4n0r committed Sep 9, 2023
1 parent 7529526 commit 18a4d01
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions tests/intbitset_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,30 +34,6 @@ def b(s):
return s.encode("latin-1")


# def check_bitset(intbitset1, msg=""):
# """
# Run basic sanity checks on a bitset
# """
# wordbitsize = intbitset1.get_wordbitsize()
# size1 = intbitset1.get_size()
# allocated1 = intbitset1.get_allocated()
# creator_list = intbitset1.extract_finite_list()
# up_to1 = creator_list and max(creator_list) or -1
# assert up_to1 <= size1 * wordbitsize < allocated1 * wordbitsize, (
# "up_to1=%s, size1=%s, allocated1=%s while testing %s during %s"
# % (up_to1, size1 * wordbitsize, allocated1 * wordbitsize, intbitset1, msg),
# )
# tmp = intbitset(intbitset1.fastdump())
# size2 = tmp.get_size()
# allocated2 = tmp.get_allocated()
# creator_list = tmp.extract_finite_list()
# up_to2 = creator_list and max(creator_list) or -1
# assert up_to2 <= size2 * wordbitsize < allocated2 * wordbitsize, (
# "After serialization up_to2=%s, size2=%s, allocated2=%s while testing %s during %s"
# % (up_to2, size2 * wordbitsize, allocated2 * wordbitsize, intbitset1, msg),
# )


TEST_SETS = [
[1024],
[10, 20],
Expand Down

0 comments on commit 18a4d01

Please sign in to comment.