Skip to content

Commit 87ebbf3

Browse files
committed
Speeding up grapheme tests compilation
1 parent f7a5877 commit 87ebbf3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/test_grapheme.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static_assert(std::invocable<const sysstr::graphemes_func &, std::string>);
2929
namespace {
3030

3131
template<std::ranges::forward_range Range>
32-
void check_graphemes_range(Range && range, const std::vector<std::u32string> & expected,
32+
void check_graphemes_range(Range && range, const std::initializer_list<std::u32string_view> & expected,
3333
std::source_location loc = std::source_location::current())
3434
{
3535
std::vector<std::u32string> result;
@@ -50,7 +50,7 @@ namespace {
5050
}
5151

5252
template<std::ranges::forward_range Range>
53-
void check_graphemes_reverse_range(Range && range, const std::vector<std::u32string> & expected,
53+
void check_graphemes_reverse_range(Range && range, const std::initializer_list<std::u32string_view> & expected,
5454
std::source_location loc = std::source_location::current())
5555
{
5656
std::vector<std::u32string> rexpected;
@@ -109,7 +109,7 @@ namespace {
109109
#elif defined(__MSVC__)
110110
[[msvc::noinline]]
111111
#endif
112-
void check_graphemes(std::u32string_view src, const std::vector<std::u32string> & expected, std::source_location loc = std::source_location::current())
112+
void check_graphemes(std::u32string_view src, const std::initializer_list<std::u32string_view> & expected, std::source_location loc = std::source_location::current())
113113
{
114114
check_graphemes_range(src, expected, loc);
115115
check_graphemes_reverse_range(src, expected, loc);

0 commit comments

Comments
 (0)