Index: platform_tools/android/tests/ordered_set_tests.py |
diff --git a/platform_tools/android/tests/ordered_set_tests.py b/platform_tools/android/tests/ordered_set_tests.py |
index 248f0f6f6c342d87eb83501a0fd128921ca05214..01016d9735b3b413d28bb140d281ecaebb54c113 100644 |
--- a/platform_tools/android/tests/ordered_set_tests.py |
+++ b/platform_tools/android/tests/ordered_set_tests.py |
@@ -59,6 +59,15 @@ class OrderedSetTest(unittest.TestCase): |
self.assertEqual(len(self.__set), RANGE-i-1) |
self.assertFalse(dummy_var in self.__set) |
+ # Test reset(), for a range of ranges. |
+ for subrange in range(RANGE): |
+ for i in range(subrange): |
+ self.__set.add(create_dummy_var(i)) |
+ self.assertEqual(len(self.__set), subrange) |
+ self.__set.reset() |
+ self.assertEqual(len(self.__set), 0) |
+ |
+ |
def main(): |
loader = unittest.TestLoader() |
suite = loader.loadTestsFromTestCase(OrderedSetTest) |