From 924ad6c96b7b95adb4cdde573b3caf919342cd88 Mon Sep 17 00:00:00 2001 From: Filippo Vicentini Date: Mon, 31 Jul 2023 10:08:07 +0200 Subject: [PATCH] add test --- tests/core/core_frozen_dict_test.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/core/core_frozen_dict_test.py b/tests/core/core_frozen_dict_test.py index a44405ffb9..d8f655b668 100644 --- a/tests/core/core_frozen_dict_test.py +++ b/tests/core/core_frozen_dict_test.py @@ -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}},