Skip to content

Commit

Permalink
use strings, not data_views
Browse files Browse the repository at this point in the history
  • Loading branch information
mapsam committed Feb 20, 2018
1 parent 6f2685a commit 0b10b28
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/t/test_property_value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,10 @@ TEST_CASE("create encoded property values from different bool types") {
}

TEST_CASE("property equality comparison operator") {
vtzero::data_view k{"key"};
std::string k = "key";

vtzero::encoded_property_value epv1{"value"};
vtzero::encoded_property_value epv2{"another value"};

vtzero::property_value pv1{epv1.data()};
vtzero::property_value pv2{epv2.data()};

Expand All @@ -389,11 +389,11 @@ TEST_CASE("property equality comparison operator") {
}

TEST_CASE("property inequality comparison operator") {
vtzero::data_view k1{"key"};
vtzero::data_view k2{"another_key"};
std::string k1 = "key";
std::string k2 = "another_key";

vtzero::encoded_property_value epv1{"value"};
vtzero::encoded_property_value epv2{"another value"};

vtzero::property_value pv1{epv1.data()};
vtzero::property_value pv2{epv2.data()};

Expand Down

0 comments on commit 0b10b28

Please sign in to comment.