[Groonga-commit] groonga/grnxx [master] Enable a test for grnxx::alpha::map::DoubleArray::get_next().

Back to archive index

susumu.yata null+****@clear*****
Wed Apr 17 09:33:54 JST 2013


susumu.yata	2013-04-17 09:33:54 +0900 (Wed, 17 Apr 2013)

  New Revision: ad73962fffe886019cc20f863ae7708e297c8519
  https://github.com/groonga/grnxx/commit/ad73962fffe886019cc20f863ae7708e297c8519

  Message:
    Enable a test for grnxx::alpha::map::DoubleArray::get_next().

  Modified files:
    test/test_alpha_map.cpp

  Modified: test/test_alpha_map.cpp (+10 -10)
===================================================================
--- test/test_alpha_map.cpp    2013-04-16 21:33:08 +0900 (b951866)
+++ test/test_alpha_map.cpp    2013-04-17 09:33:54 +0900 (a822f4e)
@@ -491,16 +491,16 @@ void test_map_double_array() {
     assert(map->num_keys() == hash_map.size());
   }
 
-//  {
-//    std::int64_t key_id = -1;
-//    for (std::size_t i = 0; i < MAP_SIZE; ++i) {
-//      T key;
-//      assert(map->get_next(key_id, &key_id, &key));
-//      assert(key_id == static_cast<std::int64_t>(i));
-//      assert(key_id == hash_map[key]);
-//    }
-//    assert(!map->get_next(key_id));
-//  }
+  {
+    std::int64_t key_id = -1;
+    for (std::size_t i = 0; i < MAP_SIZE; ++i) {
+      T key;
+      assert(map->get_next(key_id, &key_id, &key));
+      assert(key_id == static_cast<std::int64_t>(i));
+      assert(key_id == hash_map[key]);
+    }
+    assert(!map->get_next(key_id));
+  }
 
   compare_maps(map, hash_map);
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index