Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
json
Commits
fc7e181c
Unverified
Commit
fc7e181c
authored
Dec 29, 2020
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
⚗
fix string representation
parent
bdb2469c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
test/src/unit-class_parser.cpp
test/src/unit-class_parser.cpp
+1
-1
test/src/unit-regression1.cpp
test/src/unit-regression1.cpp
+1
-1
No files found.
test/src/unit-class_parser.cpp
View file @
fc7e181c
...
@@ -509,7 +509,7 @@ TEST_CASE("parser class")
...
@@ -509,7 +509,7 @@ TEST_CASE("parser class")
CHECK
(
parser_helper
(
"
\"
€
\"
"
).
get
<
json
::
string_t
>
()
==
"€"
);
CHECK
(
parser_helper
(
"
\"
€
\"
"
).
get
<
json
::
string_t
>
()
==
"€"
);
CHECK
(
parser_helper
(
"
\"
🎈
\"
"
).
get
<
json
::
string_t
>
()
==
"🎈"
);
CHECK
(
parser_helper
(
"
\"
🎈
\"
"
).
get
<
json
::
string_t
>
()
==
"🎈"
);
CHECK
(
parser_helper
(
"
\"\\
ud80c
\\
udc60
\"
"
).
get
<
json
::
string_t
>
()
==
"\
U0001306
0"
);
CHECK
(
parser_helper
(
"
\"\\
ud80c
\\
udc60
\"
"
).
get
<
json
::
string_t
>
()
==
"
\
xf0\x93\x81\xa
0
"
);
CHECK
(
parser_helper
(
"
\"\\
ud83c
\\
udf1e
\"
"
).
get
<
json
::
string_t
>
()
==
"🌞"
);
CHECK
(
parser_helper
(
"
\"\\
ud83c
\\
udf1e
\"
"
).
get
<
json
::
string_t
>
()
==
"🌞"
);
}
}
}
}
...
...
test/src/unit-regression1.cpp
View file @
fc7e181c
...
@@ -400,7 +400,7 @@ TEST_CASE("regression tests 1")
...
@@ -400,7 +400,7 @@ TEST_CASE("regression tests 1")
SECTION
(
"issue #146 - character following a surrogate pair is skipped"
)
SECTION
(
"issue #146 - character following a surrogate pair is skipped"
)
{
{
CHECK
(
json
::
parse
(
"
\"\\
ud80c
\\
udc60abc
\"
"
).
get
<
json
::
string_t
>
()
==
"\
U00013060abc
"
);
CHECK
(
json
::
parse
(
"
\"\\
ud80c
\\
udc60abc
\"
"
).
get
<
json
::
string_t
>
()
==
"
\
xf0\x93\x81\xa0\x61\x62\x63
"
);
}
}
SECTION
(
"issue #171 - Cannot index by key of type static constexpr const char*"
)
SECTION
(
"issue #171 - Cannot index by key of type static constexpr const char*"
)
...
...
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