260 Commits

Author SHA1 Message Date
miloyip
d439f989bf Add valuetest coverage 2015-04-13 18:10:07 +08:00
miloyip
074554965d Improve Reading kParseErrorTermination coverage 2015-04-13 17:07:15 +08:00
miloyip
331009a321 Fix gcc warning 2015-04-13 16:49:10 +08:00
miloyip
7e1a6a1bb2 Add Reader kParseErrorTermination coverage 2015-04-13 16:45:00 +08:00
miloyip
23809ddef6 Revert "Enable SIMD macros in unit tests"
This reverts commit bcd879653fd0044931db5387dca2ac22005e0101.
2015-04-13 16:27:49 +08:00
miloyip
bcd879653f Enable SIMD macros in unit tests 2015-04-13 16:13:39 +08:00
miloyip
affd2736c3 Fix gcc warning for itoatest 2015-04-13 15:22:26 +08:00
miloyip
0b793ea58a Add test for covering PutN() generic version 2015-04-13 15:18:26 +08:00
miloyip
e9b92256a2 Add itoatest 2015-04-13 15:11:32 +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
3d82781a75 Improve PrettyWriter coverage 2015-04-13 14:17:21 +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
miloyip
a0a6d737fc Fix gcc compilation 2015-04-13 11:13:03 +08:00
miloyip
752afa7b79 Add prettywritertest 2015-04-13 10:58:05 +08:00
miloyip
55f8339a0a Compare exact binary representation for full precision test
Conflicts:
	doc/diagram/simpledom.png
2015-04-11 11:26:47 +08:00
Milo Yip
d7ad55f49e Another two warnings 2015-04-11 00:20:10 +08:00
Milo Yip
09448e980b Another warning in valuetest 2015-04-11 00:12:15 +08:00
Milo Yip
2452afbf3c Fix -Wfloat-equal warnings in Value::operator== and valuetest 2015-04-11 00:02:17 +08:00
Milo Yip
e04d66bdd8 Try to use EXPECT_NEAR 2015-04-10 23:47:53 +08:00
Milo Yip
c18812a36a Fix yet another -Wfloat-equal warning 2015-04-10 23:37:20 +08:00
Milo Yip
2524693cfd Suppress float-equal in readertest.cpp 2015-04-10 23:24:33 +08:00
Milo Yip
fb4f321d82 Fix another -Wfloat-equal warning 2015-04-10 23:10:08 +08:00
Milo Yip
53ed550a5e Merge remote-tracking branch 'origin/master' into issue287_WarningFloatEqual 2015-04-10 22:50:24 +08:00
Milo Yip
02aa12a29e Merge pull request #291 from miloyip/issue289_NegativeZeroRoundtrip
Fix #289 negative zero roundtrip (double only)
2015-04-10 21:53:58 +08:00
Milo Yip
f73ec57241 Add -Wfloat-equal to reproduce warnings 2015-04-10 21:30:42 +08:00
Milo Yip
e5cf3b85f3 Fix #289 negative zero roundtrip (double only) 2015-04-10 21:24:29 +08:00
Milo Yip
b7e34100ed Fix #288 double quote in unicode escape 2015-04-10 20:36:27 +08:00
Milo Yip
b8cc02e0aa Try to fix a compilation error on gcc/clang 2015-04-03 11:35:32 +08:00
Milo Yip
2d920e7e0f Add user buffer unit test 2015-04-03 11:25:19 +08:00
miloyip
978a3ab830 Fix VS2012 compilation fail in stringbuffertest 2015-03-23 17:30:25 +08:00
Milo Yip
3a4835e080 Merge pull request #258 from pah/fixes/ci-debug-noperftest
Skip running perftest on CI debug builds (Appveyer; Travis)
2015-03-13 09:56:33 -04:00
Philipp A. Hartmann
c14dff1675 Merge branch 'cmake-update' of @jollyroger (#244) 2015-03-10 20:28:30 +01:00
Philipp A. Hartmann
06c3ddbac5 GenericValue::AddMember<T>: add missing overload (closes #254)
As discovered by @felipegb94, there are missing overloads to the
`GenericValue::AddMember<T>` template function, taking an explicit
`GenericValue&` as a name and accepting arbitrary primitive values.

This patch adds the missing overloads. The `StringRefType` overload
is needed to disambiguate the addition of a string literal as
value.

Some tests are added to `TEST(Value, Object)` in `valuetest.cpp`.
2015-03-10 19:11:27 +01:00
Andrii Senkovych
122170b362 Fix definitions for VS compiler 2015-02-23 20:21:07 +02:00
Philipp A. Hartmann
8341c413dd unittest.h: make sure to #include <stdexcept>
See https://github.com/miloyip/rapidjson/commit/a2a0d161#commitcomment-9838110
2015-02-20 20:29:31 +01:00
Andrii Senkovych
3ae2a29986 Backport compiler options from premake configuration. Refs #240. 2015-02-19 18:25:40 +02:00
Andrii Senkovych
9122a78a46 Add new unittests. Refs #240. 2015-02-19 18:25:40 +02:00
unknown
0cbafabe53 omit valgrind tests for Visual Studio builds 2015-02-17 11:14:47 +01:00
unknown
63ad11c367 add support for AppVeyor CI for checking Windows builds 2015-02-17 10:42:43 +01:00
Milo Yip
ecc14866e0 Update CMakeLists.txt
Move `gtest_force_shared_crt` option to Win32 VC only.
2015-02-15 14:19:56 +08:00
miloyip
8b3d72467b Fix VC linkage error for CMAKE
Mentioned in #240
2015-02-11 18:34:56 +08:00
Milo Yip
09118fa230 Merge pull request #192 from jollyroger/cmake
CMake support
2015-02-11 12:04:19 +08:00
Milo Yip
24dd7ef839 Merge branch 'movetestleak' 2015-01-14 23:03:04 +08:00
Milo Yip
7c47cd3498 Remove 2 unit tests which make memory leaks 2015-01-14 23:02:29 +08:00
Milo Yip
24563b28fb Correct Value(kStringType) and more assertions 2015-01-13 23:49:53 +08:00
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