Silas S. Brown
b7734d97c0
Remove unnecessary wording from BSD license not needed for MIT license ( fixes #528 )
2020-10-09 10:04:27 +01:00
Milo Yip
966987625c
Add transcoding/validation to Writer::RawValue()
...
Fix #1152
2018-02-13 10:58:41 +08:00
Alejandro Martinez
85500e8c8f
Changed error code for invalid special ascii chars, fixed writer tests
2017-03-24 13:37:23 +00:00
Alejandro Martinez
3c6e2cf030
Added unittests for invalid ascii control chars
2017-03-23 10:14:17 +00:00
John Stiles
84a0356608
Add unit test for Issue 889
2017-03-12 23:40:54 -07:00
StilesCrisis
595b114216
Unit test
...
Add unit tests expecting an assertion when writing an object with a key
but no value.
2017-02-27 22:36:48 -08:00
Milo Yip
3f23397596
Remove unncessary std::move()
...
Fixes #762
2016-10-05 15:02:31 +08:00
Milo Yip
0761ac126b
Remove lambda expression in (pretty)writertest
2016-09-21 21:49:49 +08:00
Tallódi Mihály
1a64cd0997
Tests for Writer, PrettyWriter move constructors
2016-09-19 22:13:33 +02:00
Eli Fidler
df9b45a656
avoid division by zero, which is undefined behavior
...
UBSAN gave:
runtime error: division by zero
2016-06-14 07:01:41 -07:00
Michael Thon
135da7ab34
Allow options for writing and parsing NaN/Infinity
...
This adds kWriteNanAndInfFlag to Writer to allow writing of nan,
inf and -inf doubles as "NaN", "Infinity" and "-Infinity",
respectively, and kParseNanAndInfFlag to Reader to allow parsing
of "NaN", "Inf", "Infinity", "-Inf" and "-Infinity". This is part
of issue #36 , adding optional support for relaxed JSON syntax.
2016-05-20 23:54:55 +02:00
Milo Yip
3da4afd259
Another trial on writer coverage
2016-04-16 15:19:34 +08:00
Milo Yip
8fcc65bf58
Adjust ScanWriteUnescapedString test case
2016-04-15 19:51:50 +08:00
Milo Yip
8f9ff88c29
Add Writer. ScanWriteUnescapedString to try to improve coverage
2016-04-15 17:03:23 +08:00
Milo Yip
a8970be543
Improve UTF8::Encode() coverage via writing to AutoUTF
2016-04-15 14:15:08 +08:00
Milo Yip
1bfa188d18
Improve encodings coverage
2016-04-15 13:50:24 +08:00
Milo Yip
a62777487d
Normalize line endings but not JSON files
2016-03-04 11:52:18 +08:00
Milo Yip
7fb84d304b
Revert "Normalize all the line endings"
...
This reverts commit 6047e3ce128954ec594e9a893ef2125c9f9b61c7.
2016-03-04 11:51:30 +08:00
Milo Yip
6047e3ce12
Normalize all the line endings
2016-03-04 09:46:11 +08:00
Milo Yip
e7cb2b1cbf
Add (Pretty)Writer::RawValue()
...
Fix #205
2016-02-14 15:31:24 +08:00
Milo Yip
964d89e34b
Add encoding validation option for Writer/PrettyWriter
2016-02-10 11:31:29 +08:00
Milo Yip
935e2ef7ed
Merge pull request #510 from miloyip/issue509_writingnaninf
...
Fix #509 by checking Nan/Inf when writing a double
2016-02-09 18:12:17 +08:00
miloyip
8d39282af5
Update license headers for tests
2015-04-18 21:41:38 +08:00
miloyip
5b89f331c5
Add more test numbers for writer
2015-04-15 00:18:22 +08:00
miloyip
3621235cd0
Improve dtoa coverage
2015-04-14 14:52:42 +08:00
miloyip
18a8891f0d
Improve coverage for Writer and PrettyWriter
2015-04-13 14:50:08 +08:00
miloyip
3c028685df
Add tests for Writer API for RAPIDJSON_HAS_STDSTRING
2015-04-13 14:25:05 +08:00
miloyip
127ce7175a
Add a missing error handling for Writer, and add tests for invalid encoding.
2015-04-13 14:05:43 +08:00
miloyip
79433827e8
Add Tests for WriteUInt64(), WriteInt64() of generic stream
2015-04-13 13:41:56 +08:00
Milo Yip
e5cf3b85f3
Fix #289 negative zero roundtrip (double only)
2015-04-10 21:24:29 +08:00
Milo Yip
855da06d0f
Makes gcc x64 runnable, but failed on one case. [ci skip]
2014-09-14 10:52:33 +08:00
Milo Yip
3714019819
Add ShrinkToFit() to StringBuffer and MemoryBuffer
2014-08-17 18:32:08 +08:00
Philipp A. Hartmann
453eda5f94
tabs to 4 spaces (following 0dbcc1cf)
2014-08-11 17:22:11 +02:00
Philipp A. Hartmann
e45557e28e
writertest: add some roundtrip tests for non-compound root values
2014-08-11 17:14:31 +02:00
Philipp A. Hartmann
8d53689432
(Pretty)Writer: drop restriction to object/array roots
2014-08-11 17:14:31 +02:00
Milo Yip
0dbcc1cf2e
Add license and change indents from tab to space.
2014-08-11 22:26:45 +08:00
Milo Yip
1900b7bace
Remove double precision settings API in Writer
2014-08-09 21:37:02 +08:00
Milo Yip
a7762a3453
Custom dtoa() impleemntation
...
Modified from Milo's Grisu2 implementation. 99.9% cases return shortest
decimal format.
2014-08-09 21:12:58 +08:00
miloyip
9974e35578
Merge conflicts and suppress VC warnings
2014-07-15 09:20:19 +08:00
Milo Yip
b5436f7104
Add ASCII encoding which can fulfill #69
2014-07-13 23:51:56 +08:00
Milo Yip
5babae98e5
Add Writer::IsComplete()
2014-07-13 13:21:25 +08:00
Milo Yip
b234007713
Fixes #66 by adding Writer::Reset() and multiple root check
...
Note it redefines RAPIDJSON_ASSERT() to throw exception in unittest and
check for assertion with gtest.
2014-07-13 13:16:03 +08:00
Milo Yip
cc04219e36
Fixes #59 by adding bool return value for each event handler function
2014-07-10 19:33:01 +08:00
Milo Yip
ace56097fd
Fixes compilation error.
2014-07-04 16:56:19 +08:00
Milo Yip
0bff4ffd0c
Adds unit tests about streams.
2014-07-04 16:39:09 +08:00
Philipp A. Hartmann
5474bc2f3d
DoublePrecision: add a unit test for the precision handling
2014-06-25 18:09:16 +02:00
miloyip@gmail.com
9c68ce986e
Fixed a lots of vc2008/vs2010 and gcc3/4 warnings with the maximum warning level.
...
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@67 c5894555-1306-4e8d-425f-1f6f381ee07c
2012-11-13 08:02:22 +00:00
miloyip@gmail.com
3d77ef8ee9
Added GenericStringBuffer::GetSize() within unit test, as in 0.1x branch.
...
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@61 c5894555-1306-4e8d-425f-1f6f381ee07c
2012-02-28 06:21:03 +00:00
miloyip@gmail.com
55587d6f62
Added transcoding support in Writer and PrettyWriter
...
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@47 c5894555-1306-4e8d-425f-1f6f381ee07c
2011-12-03 04:17:07 +00:00
miloyip@gmail.com
8f8e905306
Initial version (0.1)
...
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@2 c5894555-1306-4e8d-425f-1f6f381ee07c
2011-11-18 17:01:23 +00:00