[Groonga-commit] groonga/grnxx at bf0e136 [master] Update a test program for grnxx::alpha::Map.

Back to archive index

susumu.yata null+****@clear*****
Fri Apr 26 21:55:41 JST 2013


susumu.yata	2013-04-26 21:55:41 +0900 (Fri, 26 Apr 2013)

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

  Message:
    Update a test program for grnxx::alpha::Map.

  Modified files:
    test/test_alpha_map.cpp

  Modified: test/test_alpha_map.cpp (+4 -3)
===================================================================
--- test/test_alpha_map.cpp    2013-04-26 21:49:10 +0900 (4de2b82)
+++ test/test_alpha_map.cpp    2013-04-26 21:55:41 +0900 (b7dbaf0)
@@ -22,6 +22,7 @@
 #include <vector>
 #include <unordered_map>
 
+#include "grnxx/alpha/geo_point.hpp"
 #include "grnxx/alpha/map.hpp"
 #include "grnxx/logger.hpp"
 #include "grnxx/time/time.hpp"
@@ -374,12 +375,12 @@ void test_map(grnxx::alpha::MapType map_type) {
   for (auto it = hash_map.begin(); it != hash_map.end(); ++it) {
     assert(map->insert(it->first));
   }
-  map->truncate();
+  assert(map->truncate());
   for (auto it = hash_map.begin(); it != hash_map.end(); ++it) {
     assert(!map->get(it->second));
   }
 
-  map->truncate();
+  assert(map->truncate());
   for (auto it = hash_map.begin(); it != hash_map.end(); ++it) {
     assert(map->insert(it->first, &it->second));
   }
@@ -397,7 +398,7 @@ void test_map(grnxx::alpha::MapType map_type) {
     assert(key_id == old_it->second);
   }
 
-  map->truncate();
+  assert(map->truncate());
   for (auto it = hash_map.begin(); it != hash_map.end(); ++it) {
     assert(map->insert(it->first, &it->second));
   }
-------------- next part --------------
HTML����������������������������...
Download 



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