mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
KWSys 2026-09-11 (78cacab5)
Code extracted from:
https://gitlab.kitware.com/utils/kwsys.git
at commit 78cacab53201d07143cd3843df56b7708f3a7cc6 (master).
Upstream Shortlog
-----------------
Tyler Yankee (1):
edcc6bbd RegularExpression: Add newline test case
This commit is contained in:
committed by
Brad King
parent
b96864258a
commit
b8cdd8c26e
@@ -211,6 +211,12 @@ int testRegularExpression(int, char*[])
|
||||
// 'o'-'a'.
|
||||
run("charclass.no_escape_invalid_range", ExpectCompile("[\\n-a]", false));
|
||||
|
||||
// By contrast, a literal newline byte '\n' adjacent to '-' forms the
|
||||
// ascending, valid range '\n'(0x0A)-'a'(0x61).
|
||||
run("charclass.literal_newline_in_range", ExpectCompile("[\n-a]", true));
|
||||
run("charclass.literal_newline_range_match",
|
||||
ExpectMatch("[\n-a]+", "q\n19abz", "\n19a", 1, 5));
|
||||
|
||||
// Class ranges work over raw byte values, including non-printable
|
||||
// control bytes such as \001 (0x01) through \037 (0x1F).
|
||||
run("charclass.octal_literal_byte_range",
|
||||
|
||||
Reference in New Issue
Block a user