]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5017] Split slash unicode into separate test.
authorTomek Mrugalski <tomasz@isc.org>
Tue, 20 Dec 2016 13:27:32 +0000 (14:27 +0100)
committerTomek Mrugalski <tomasz@isc.org>
Tue, 20 Dec 2016 13:27:32 +0000 (14:27 +0100)
src/bin/dhcp4/tests/parser_unittest.cc

index d594716744394608a4548d34468493218361ed32..ea31cd0fab6c4897e37a9fefea9e52c21616feed 100644 (file)
@@ -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;