Skip to content

Commit

Permalink
adapt unittests' ConstructorStats
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Jan 2, 2020
1 parent cf65871 commit 04b0b99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/test_methods_and_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def test_methods_and_attributes():
assert cstats.alive() == 0
assert cstats.values() == ["32"]
assert cstats.default_constructions == 1
assert cstats.copy_constructions == 2
assert cstats.move_constructions >= 2
assert cstats.copy_constructions == 1
assert cstats.move_constructions >= 3
assert cstats.copy_assignments == 0
assert cstats.move_assignments == 0

Expand Down
4 changes: 2 additions & 2 deletions tests/test_virtual_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ def get_movable(self, a, b):
assert nc_stats.values() == ['4', '9', '9', '9']
assert mv_stats.values() == ['4', '5', '7', '7']
assert nc_stats.copy_constructions == 0
assert mv_stats.copy_constructions == 1
assert mv_stats.copy_constructions == 0
assert nc_stats.move_constructions >= 0
assert mv_stats.move_constructions >= 0
assert mv_stats.move_constructions >= 1


def test_dispatch_issue(msg):
Expand Down

0 comments on commit 04b0b99

Please sign in to comment.