Skip to content

Commit b65dcd0

Browse files
author
Hana Dusíková
committed
u8string doesn't make sense to test before char8_t
1 parent 2127216 commit b65dcd0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/_unicode.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,10 @@ static_assert(CTRE_CREATE(U"\\p{script=Latin}+").match(U"abcd"));
7171
static_assert(CTRE_CREATE(U"\\p{script=Greek}+").match(U"βΩ"));
7272
static_assert(!CTRE_CREATE(U"\\p{script=Latin}+").match(U"βΩ"));
7373
static_assert(!CTRE_CREATE(U"\\p{script=Greek}+").match(U"abcd"));
74+
#if __cpp_char8_t >= 201811
7475
static_assert(CTRE_CREATE(U"\\p{emoji}+").match(u8"🤪😍"));
7576
static_assert(CTRE_CREATE("\\p{emoji}+").match(u8"🤪😍"));
77+
#endif
7678
static_assert(CTRE_CREATE(U"\\p{emoji}+").match(U"🤪😍✨\U0001F3F3"));
7779
static_assert(CTRE_SYNTAX(U"\\p{sc=greek}+?\\p{Emoji}\\p{sc=greek}+?"));
7880
static_assert(CTRE_CREATE(U"\\p{sc=greek}+?\\p{Emoji}").match(U"αΩ😍"));

0 commit comments

Comments
 (0)