Milo Yip
92554b52a2
Merge remote-tracking branch 'origin/master' into issue120floatprecision
2014-11-30 18:53:32 +08:00
Milo Yip
26491cff1e
Fix additional compilation errors in unit tests for VC
2014-11-23 19:03:06 +08:00
Milo Yip
3679c280dd
Merge remote-tracking branch 'origin/master' into issue120floatprecision_customstrtod
2014-11-23 08:48:03 +08:00
Milo Yip
c8bed6b8cc
Fix compilation errors in unit tests for VC
2014-11-23 08:38:48 +08:00
Milo Yip
57b91300fb
Merge remote-tracking branch 'origin/master' into issue120floatprecision_customstrtod
...
Conflicts:
include/rapidjson/internal/dtoa.h
test/unittest/readertest.cpp
2014-11-14 22:23:16 +08:00
Milo Yip
22ca9312df
Fix gcc/clang compilation errors and turn off exhaustive number test
2014-11-14 18:36:25 +08:00
Milo Yip
40852f4d6d
Fixes StrtodDiyFp bugs
2014-11-14 18:23:51 +08:00
Philipp A. Hartmann
7dc9b18f54
namespacetest.cpp: add test for separate namespace
2014-11-06 20:54:46 +01:00
Drew Noakes
6aa664eeef
Document traits of types using <type_traits> and static_assert in tests.
...
The tests state the current traits of types Document, Value and
StringBuffer. There are slight differences between them. It seems like a
good idea to extend this approach across more types, and to review the
expected traits across the board.
2014-10-31 11:00:57 +00:00
miloyip
b4e2d58c74
Temp commit
2014-10-31 10:25:04 +08:00
Milo Yip
96f979a0c4
Merge pull request #187 from pah/fixes/sign-compare
...
DocumentMove tests: compiler error due to -Wsign-compare
2014-10-31 09:33:32 +08:00
Philipp A. Hartmann
1a31767dcf
DocumentMove tests: compiler error due to -Wsign-compare
...
On GCC 4.9, the documenttest.cpp fails to compile in C++11 mode,
as the MoveConstructor/Assignment tests contain left-over
comparisons between signed and unsigned expressions.
2014-10-30 19:23:57 +01:00
Drew Noakes
0bfd0a5205
Add unit tests for StringBuffer.
2014-10-30 17:08:45 +00:00
Milo Yip
8fc0e57926
Merge pull request #177 from spl/use-deprecated
...
Use 'deprecated' instead of 'depreciated'
2014-10-27 14:53:29 +08:00
Sean Leather
32525a5d5e
Use 'deprecated' instead of 'depreciated'
2014-10-26 14:51:35 +02:00
ecorm
fd12dcb3db
Added MemoryPoolAllocator to GenericDocument moveunit tests. Added comment in GenericDocument move assignment operator explaining why the static_cast is needed to move the base class.
2014-10-24 14:05:32 -03:00
ecorm
cb33f910c3
Merge branch 'master' into issue123movesupport
2014-10-24 03:11:34 -03:00
ecorm
02f3b00ee6
Implemented C++11 move semantics for GenericDocument
2014-10-24 02:51:17 -03:00
Zhihao Yuan
7303d92990
Disambiguate GenericValue's [0] and ["string"]
2014-10-23 21:50:39 -04:00
Sean Leather
0e715872c0
Fix MemoryStream::Peek() and add test for fix
...
MemoryStream::Peek() did not return '\0' if src_ == end_, but Peek() == '\0' is
used in parsing in the GenericReader. Without this change, parsing with
MemoryStream as the InputStream could result in a segmentation fault.
2014-10-23 00:31:19 +02:00
Milo Yip
faa877ff78
Partial StrtodDiyFp implementation [ci skip]
2014-09-19 08:59:36 +08:00
Milo Yip
299e9f1e32
Added missing files
2014-09-16 18:47:35 +08:00
Milo Yip
bea4fa7f6a
Remove unused BigInteger::operator+=(const BigInteger&)
2014-09-15 00:31:38 +08:00
Milo Yip
cbd7475242
Fix normal-subnormal boundary and add more boundary cases in unit tests.
2014-09-15 00:30:22 +08:00
Milo Yip
fa52a26909
Fix a unit test warning and suppress a failing case
2014-09-14 12:52:07 +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
98dd0a0a64
Make custom strtod work for denormal numbers and some boundary cases [ci skip]
2014-09-13 23:24:40 +08:00
Milo Yip
4bd240abee
Implementing custom strtod, fail on some cases [ci skip]
2014-09-12 23:03:20 +08:00
Milo Yip
359ebc78c0
Extract conversion code to strtod.h [ci skip]
2014-09-10 23:36:09 +08:00
miloyip
774a4aa2b2
Fix VC2010 which don't have std::isnan() et al.
2014-09-10 09:28:52 +08:00
miloyip
add0d9c8f9
Compute error statistics of normal precision
2014-09-05 22:18:40 +08:00
miloyip
c4a657d430
Fix ParseNumber_Integer test
2014-09-05 20:06:03 +08:00
miloyip
a71f2e60ff
Optimize ParseNumber()
2014-09-05 19:51:20 +08:00
Milo Yip
881c91d696
Merge master and implement kParseFullPrecision
2014-09-05 13:22:56 +08:00
Kosta
25f4892aa1
removed unused argument names
2014-09-04 15:56:21 +02:00
Kosta
8b2faff981
enhance IterativeParsingReaderHandler
to check for Key()
events
2014-09-04 15:51:09 +02:00
Kosta
23b3d24355
add Key()
to IterativeParsingReaderHandler in
readertest.cpp`
2014-09-04 15:24:52 +02:00
miloyip
b0436911a8
Check "fast path cases in disguise" in strtod
2014-09-03 14:45:37 +08:00
miloyip
818f6f1f2e
Add random tests for ParseNumber
2014-09-03 13:27:43 +08:00
Milo Yip
bc9d7866be
Merge pull request #128 from pah/feature/cxx11-move
...
Initial C++11 move support
2014-09-03 09:37:35 +08:00
Milo Yip
15d70d6a7b
Merge pull request #127 from pah/feature/value-different-allocators
...
GenericValue: accept values with different allocators for read-only access
2014-09-03 09:37:15 +08:00
miloyip
0580d42d11
Fallback strtod() when not able to do fast-path
...
This shall generate best possible precision (if strtod() is correctly
implemented). Need more unit tests and performance tests. May add an
option for accepting precision error. Otherwise LUT in Pow10() can be
reduced.
2014-09-03 01:02:38 +08:00
Kosta
08e81097eb
final fix for the unit test case...
2014-09-01 12:54:50 +02:00
Kosta
ba05ea52cf
use rapidjson::Value::SizeType
as the type for storing and comparing the string length
2014-09-01 12:52:36 +02:00
Kosta
609997565c
unit test simplification for short string optimization
2014-09-01 12:46:04 +02:00
Kosta
88debcf02e
typo fixed for the unit test implementation
2014-09-01 12:40:28 +02:00
Kosta
056d0dafe4
add unit test for testing edge cases of the short string optimization
2014-09-01 12:34:43 +02:00
Philipp A. Hartmann
47c32eee6b
valuetest: add test for Uint64 comparisons
2014-08-31 19:01:16 +02:00
Philipp A. Hartmann
36031b1b6f
valuetest: add tests for rvalue references, reenable erase/remove pattern
2014-08-31 17:32:31 +02:00
Philipp A. Hartmann
a9d2b75179
valuetest: avoid underscores in GoogleTest tests
...
See https://code.google.com/p/googletest/wiki/FAQ#Why_should_not_test_case_names_and_test_names_contain_underscore
2014-08-31 17:32:31 +02:00