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
6e2e466c
Commit
6e2e466c
authored
7 years ago
by
abolz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests: Don't rely on the format used for floating-point formatting
parent
107c21a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test/src/unit-regression.cpp
test/src/unit-regression.cpp
+1
-1
No files found.
test/src/unit-regression.cpp
View file @
6e2e466c
...
@@ -785,7 +785,7 @@ TEST_CASE("regression tests")
...
@@ -785,7 +785,7 @@ TEST_CASE("regression tests")
{
{
json
j
=
json
::
parse
(
"166020696663385964490"
);
json
j
=
json
::
parse
(
"166020696663385964490"
);
CHECK
(
j
.
is_number_float
());
CHECK
(
j
.
is_number_float
());
CHECK
(
j
.
dump
()
==
"1.66020696663386e+20"
);
CHECK
(
j
.
get
<
json
::
number_float_t
>
()
==
static_cast
<
json
::
number_float_t
>
(
166020696663385964490.0
)
);
}
}
SECTION
(
"issue #405 - Heap-buffer-overflow (OSS-Fuzz issue 342)"
)
SECTION
(
"issue #405 - Heap-buffer-overflow (OSS-Fuzz issue 342)"
)
...
...
This diff is collapsed.
Click to expand it.
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