Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Kea
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastian Schrader
Kea
Commits
5602d529
Commit
5602d529
authored
Dec 20, 2016
by
Tomek Mrugalski
🛰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[5017] Split slash unicode into separate test.
parent
01fba5c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/bin/dhcp4/tests/parser_unittest.cc
src/bin/dhcp4/tests/parser_unittest.cc
+5
-1
No files found.
src/bin/dhcp4/tests/parser_unittest.cc
View file @
5602d529
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment