Skip to content

Commit

Permalink
Add a test for Text::raw_size(). (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yata committed Nov 25, 2014
1 parent 08743f3 commit 8ea0f8d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test_data_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 8ea0f8d

Please sign in to comment.