Index: tests/HashTest.cpp |
diff --git a/tests/HashTest.cpp b/tests/HashTest.cpp |
index 00857f63dcd61377090f2fc01023e22b84d4376a..623e597eeb2d48dc0238f4a72ae27a8043195558 100644 |
--- a/tests/HashTest.cpp |
+++ b/tests/HashTest.cpp |
@@ -39,6 +39,9 @@ DEF_TEST(HashMap, r) { |
} |
REPORTER_ASSERT(r, map.count() == N); |
+ |
+ map.reset(); |
+ REPORTER_ASSERT(r, map.count() == 0); |
} |
namespace { uint32_t hash_string(const SkString& s) { return SkToInt(s.size()); } } |
@@ -54,6 +57,9 @@ DEF_TEST(HashSet, r) { |
REPORTER_ASSERT(r, set.contains(SkString("Hello"))); |
REPORTER_ASSERT(r, set.contains(SkString("World"))); |
REPORTER_ASSERT(r, !set.contains(SkString("Goodbye"))); |
+ |
+ set.reset(); |
+ REPORTER_ASSERT(r, set.count() == 0); |
} |
namespace { |