[Groonga-commit] groonga/grnxx at 8ea0f8d [master] Add a test for Text::raw_size(). (#116)

Back to archive index

susumu.yata null+****@clear*****
Tue Dec 16 10:45:30 JST 2014


susumu.yata	2014-11-25 16:08:18 +0900 (Tue, 25 Nov 2014)

  New Revision: 8ea0f8db960c704eb3c31862282ccfb7eee022e3
  https://github.com/groonga/grnxx/commit/8ea0f8db960c704eb3c31862282ccfb7eee022e3

  Message:
    Add a test for Text::raw_size(). (#116)

  Modified files:
    test/test_data_types.cpp

  Modified: test/test_data_types.cpp (+6 -0)
===================================================================
--- test/test_data_types.cpp    2014-11-25 16:07:48 +0900 (81c3371)
+++ test/test_data_types.cpp    2014-11-25 16:08:18 +0900 (60e9f03)
@@ -950,6 +950,12 @@ void test_text() {
   assert(empty.size().raw() == 0);
   assert(na.size().is_na());
 
+  assert(ab.raw_size() == 2);
+  assert(abc.raw_size() == 3);
+  assert(bc.raw_size() == 2);
+  assert(empty.raw_size() == 0);
+  assert(na.raw_size() == grnxx::Text::raw_na_size());
+
   assert(!ab.is_empty());
   assert(!abc.is_empty());
   assert(!bc.is_empty());
-------------- next part --------------
HTML����������������������������...
Download 



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