attempt to fix "error: chosen constructor is explicit in copy-initialization" error with gcc
This commit is contained in:
parent
47763afef3
commit
8c4fa25c8d
1 changed files with 4 additions and 4 deletions
|
@ -66,7 +66,7 @@ TEST_CASE("shaping")
|
|||
|
||||
{
|
||||
auto const& expected =
|
||||
{std::tuple<unsigned, unsigned>{0, 0}, {0, 3}, {0, 4}, {0, 7}, {3, 8}, {11, 9}, {68, 10}, {69, 11}, {70, 12}, {12, 13}};
|
||||
{std::tuple<unsigned, unsigned>(0, 0), {0, 3}, {0, 4}, {0, 7}, {3, 8}, {11, 9}, {68, 10}, {69, 11}, {70, 12}, {12, 13}};
|
||||
// with default NotoSans-Regular.ttc and NotoNaskhArabic-Regular.ttf ^^^
|
||||
//std::vector<std::pair<unsigned, unsigned>> expected =
|
||||
// {{977,0}, {1094,3}, {1038,4}, {1168,4}, {9,7}, {3,8}, {11,9}, {68,10}, {69,11}, {70,12}, {12,13}};
|
||||
|
@ -76,19 +76,19 @@ TEST_CASE("shaping")
|
|||
|
||||
{
|
||||
auto const& expected =
|
||||
{std::tuple<unsigned, unsigned>{0, 0}, {0, 3}, {0, 4}, {0, 7}, {3, 8}, {11, 9}, {0, 10}, {0, 11}, {0, 12}, {12, 13}};
|
||||
{std::tuple<unsigned, unsigned>(0, 0), {0, 3}, {0, 4}, {0, 7}, {3, 8}, {11, 9}, {0, 10}, {0, 11}, {0, 12}, {12, 13}};
|
||||
test_shaping(fontset, fm, expected, u8"སྤུ་ཧྲེང (普兰镇)");
|
||||
}
|
||||
|
||||
{
|
||||
auto const& expected =
|
||||
{std::tuple<unsigned, unsigned>{68, 0}, {69, 1}, {70, 2}, {3, 3}, {11, 4}, {0, 5}, {0, 6}, {0, 7}, {12, 8}};
|
||||
{std::tuple<unsigned, unsigned>(68, 0), {69, 1}, {70, 2}, {3, 3}, {11, 4}, {0, 5}, {0, 6}, {0, 7}, {12, 8}};
|
||||
test_shaping(fontset, fm, expected, u8"abc (普兰镇)");
|
||||
}
|
||||
|
||||
{
|
||||
auto const& expected =
|
||||
{std::tuple<unsigned, unsigned>{68, 0}, {69, 1}, {70, 2}, {3, 3}, {11, 4}, {68, 5}, {69, 6}, {70, 7}, {12, 8}};
|
||||
{std::tuple<unsigned, unsigned>(68, 0), {69, 1}, {70, 2}, {3, 3}, {11, 4}, {68, 5}, {69, 6}, {70, 7}, {12, 8}};
|
||||
test_shaping(fontset, fm, expected, "abc (abc)");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue