Add unit test for 7003255c0e
(#4096)
This commit is contained in:
parent
7003255c0e
commit
b84c414f2e
1 changed files with 15 additions and 0 deletions
|
@ -31,3 +31,18 @@ TEST_CASE("many punctuation chars")
|
||||||
CHECK(runs.getScriptEnd() == text.length());
|
CHECK(runs.getScriptEnd() == text.length());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST_CASE("empty runs")
|
||||||
|
{
|
||||||
|
mapnik::value_unicode_string text("()text");
|
||||||
|
ScriptRun runs(text.getBuffer(), text.length());
|
||||||
|
std::size_t count = 0;
|
||||||
|
std::size_t size = 0;
|
||||||
|
while (runs.next())
|
||||||
|
{
|
||||||
|
size += runs.getScriptEnd() - runs.getScriptStart();
|
||||||
|
++count;
|
||||||
|
}
|
||||||
|
REQUIRE(count == 1);
|
||||||
|
REQUIRE(size == text.length());
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue