Skip to content

Commit 56b0671

Browse files
committed
-
1 parent 88b88a9 commit 56b0671

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

source_py3/test_python_toolbox/test_nifty_collections/test_bagging.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,16 @@ def test_n_elements(self):
101101
assert bag.n_elements == 5
102102
assert bag.n_elements == 5
103103

104+
105+
def test_frozen_bag_bag(self):
106+
bag = self.bag_type('meeeow')
107+
assert bag.frozen_bag_bag == \
108+
nifty_collections.FrozenBagBag({3: 1, 1: 3,})
109+
if not isinstance(bag, collections.Hashable):
110+
bag['o'] += 2
111+
assert bag.frozen_bag_bag == \
112+
nifty_collections.FrozenBagBag({3: 2, 1: 2,})
113+
104114

105115

106116

0 commit comments

Comments
 (0)