Commit 5602d529 authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰

[5017] Split slash unicode into separate test.

parent 01fba5c0
......@@ -500,9 +500,13 @@ TEST(ParserTest, unicodeEscapes) {
ASSERT_EQ(Element::string, result->getType());
EXPECT_EQ(ins, result->stringValue());
}
}
// This test checks that all represenations of a slash is recognized properly.
TEST(ParserTest, unicodeSlash) {
// check the 4 possible encodings of solidus '/'
json = "\"/\\/\\u002f\\u002F\"";
ConstElementPtr result;
string json = "\"/\\/\\u002f\\u002F\"";
ASSERT_NO_THROW(
try {
Parser4Context ctx;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment