[Groonga-commit] groonga/grnxx at acc40bc [master] Add a test for String. (#75)

Back to archive index

susumu.yata null+****@clear*****
Fri Sep 26 15:46:28 JST 2014


susumu.yata	2014-09-26 15:46:28 +0900 (Fri, 26 Sep 2014)

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

  Message:
    Add a test for String. (#75)

  Modified files:
    test/test_string.cpp

  Modified: test/test_string.cpp (+6 -0)
===================================================================
--- test/test_string.cpp    2014-09-26 15:45:06 +0900 (53efa12)
+++ test/test_string.cpp    2014-09-26 15:46:28 +0900 (0e9ade6)
@@ -168,6 +168,12 @@ void test_string() {
     assert(bodies[i] ==
            grnxx::StringCRef(strings[i].data(), strings[i].size()));
   }
+
+  for (grnxx::Int i = 0; i < NUM_STRINGS; ++i) {
+    strings[i].append(strings[i]);
+    assert(bodies[i].append(&error, bodies[i]));
+    assert(std::string(bodies[i].data(), bodies[i].size()) == strings[i]);
+  }
 }
 
 int main() {
-------------- next part --------------
HTML����������������������������...
다운로드 



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