Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipVinc committed Jul 31, 2023
1 parent 005af0b commit 924ad6c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/core/core_frozen_dict_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,18 @@ def test_utility_copy(self, x, add_or_replace, actual_new_x):
new_x == actual_new_x and isinstance(new_x, type(actual_new_x))
)

@parameterized.parameters(
{
'x': {'a': 1, 'b': {'c': 2}},
},
{
'x': FrozenDict({'a': 1, 'b': {'c': 2}}),
},
)
def test_utility_copy(self, x, actual_new_x):
new_x = copy(x)
self.assertTrue(new_x == x and isinstance(new_x, type(x)))

@parameterized.parameters(
{
'x': {'a': 1, 'b': {'c': 2}},
Expand Down

0 comments on commit 924ad6c

Please sign in to comment.