summaryrefslogtreecommitdiff
path: root/test/text/tagged_string.test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/text/tagged_string.test.cpp')
-rw-r--r--test/text/tagged_string.test.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/text/tagged_string.test.cpp b/test/text/tagged_string.test.cpp
index 3c58ccd94b..da1141f00b 100644
--- a/test/text/tagged_string.test.cpp
+++ b/test/text/tagged_string.test.cpp
@@ -6,22 +6,22 @@
using namespace mbgl;
TEST(TaggedString, Trim) {
- TaggedString basic(u" \t\ntrim that and not this \n\t", SectionOptions(1.0f, 0));
+ TaggedString basic(u" \t\ntrim that and not this \n\t", SectionOptions(1.0f, {}));
basic.trim();
EXPECT_EQ(basic.rawText(), u"trim that and not this");
TaggedString twoSections;
- twoSections.addSection(u" \t\ntrim that", 1.5f, 1);
- twoSections.addSection(u" and not this \n\t", 0.5f, 2);
+ twoSections.addSection(u" \t\ntrim that", 1.5f, {});
+ twoSections.addSection(u" and not this \n\t", 0.5f, {});
twoSections.trim();
EXPECT_EQ(twoSections.rawText(), u"trim that and not this");
- TaggedString empty(u"\n\t\v \r \t\n", SectionOptions(1.0f, 0));
+ TaggedString empty(u"\n\t\v \r \t\n", SectionOptions(1.0f, {}));
empty.trim();
EXPECT_EQ(empty.rawText(), u"");
- TaggedString noTrim(u"no trim!", SectionOptions(1.0f, 0));
+ TaggedString noTrim(u"no trim!", SectionOptions(1.0f, {}));
noTrim.trim();
EXPECT_EQ(noTrim.rawText(), u"no trim!");
}