From 7587353ab604f10862e6cd65e0944406cdbfde0a Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 8 Aug 2017 17:10:08 -0700 Subject: [PATCH] Avoid unicode literals in tests MSVC tries to normalize them based on the current locale. --- test/compiler/prepare_grammar/expand_tokens_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/compiler/prepare_grammar/expand_tokens_test.cc b/test/compiler/prepare_grammar/expand_tokens_test.cc index 5b2038f6..cb39cfa1 100644 --- a/test/compiler/prepare_grammar/expand_tokens_test.cc +++ b/test/compiler/prepare_grammar/expand_tokens_test.cc @@ -35,7 +35,7 @@ describe("expand_tokens", []() { it("handles strings containing non-ASCII UTF8 characters", [&]() { AssertThat( - expand_token(String{"\u03B1 \u03B2"}).rule, + expand_token(String{"\xCE\xB1 \xCE\xB2"}).rule, Equals(Rule::seq({ CharacterSet{{ 945 }}, CharacterSet{{ ' ' }}, @@ -63,7 +63,7 @@ describe("expand_tokens", []() { it("handles regexps containing non-ASCII UTF8 characters", [&]() { AssertThat( - expand_token(Pattern{"[^\u03B1-\u03B4]+"}).rule, + expand_token(Pattern{"[^\xCE\xB1-\xCE\xB4]+"}).rule, Equals(Rule(Repeat{ CharacterSet().include_all().exclude(945, 948) }))