diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2016-08-19 15:29:44 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-08-19 16:32:58 -0700 |
commit | 67df783697027d8af0e848a1bc71aeafd82f78a2 (patch) | |
tree | c5e6bb2a87a09f7eb6e587f976b706ed674353a9 /tensorflow/core/util/presized_cuckoo_map_test.cc | |
parent | 8c08b34a0b9fd51c5cd3166f2d99e1246e2e6645 (diff) |
Automated rollback of change 130775324
Change: 130804905
Diffstat (limited to 'tensorflow/core/util/presized_cuckoo_map_test.cc')
-rw-r--r-- | tensorflow/core/util/presized_cuckoo_map_test.cc | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/tensorflow/core/util/presized_cuckoo_map_test.cc b/tensorflow/core/util/presized_cuckoo_map_test.cc index fe8e5dcfbd..64ad315518 100644 --- a/tensorflow/core/util/presized_cuckoo_map_test.cc +++ b/tensorflow/core/util/presized_cuckoo_map_test.cc @@ -13,11 +13,11 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/core/util/presized_cuckoo_map.h" #include "tensorflow/core/platform/env.h" #include "tensorflow/core/platform/fingerprint.h" #include "tensorflow/core/platform/test.h" #include "tensorflow/core/platform/test_benchmark.h" +#include "tensorflow/core/util/presized_cuckoo_map.h" namespace tensorflow { namespace { @@ -64,22 +64,6 @@ TEST(PresizedCuckooMapTest, ZeroSizeMap) { } } -TEST(PresizedCuckooMapTest, RepeatedClear) { - PresizedCuckooMap<int> pscm(2); - int out; - for (int i = 0; i < 100; ++i) { - pscm.InsertUnique(0, 0); - pscm.InsertUnique(1, 1); - EXPECT_TRUE(pscm.Find(0, &out)); - EXPECT_EQ(0, out); - EXPECT_TRUE(pscm.Find(1, &out)); - EXPECT_EQ(1, out); - pscm.Clear(2); - EXPECT_FALSE(pscm.Find(0, &out)); - EXPECT_FALSE(pscm.Find(1, &out)); - } -} - void RunFill(int64 table_size) { PresizedCuckooMap<int> pscm(table_size); for (int64 i = 0; i < table_size; i++) { |