aboutsummaryrefslogtreecommitdiff
path: root/src/test/univalue_tests.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Univalue] add univalue over subtreeJonas Schnelli2015-10-011-1/+1
| | | | similar to secp256k1 include and compile univalue over a subtree
* Stop parsing JSON after first finished construct.Daniel Kraft2015-08-201-0/+15
| | | | | | Fix https://github.com/bitcoin/bitcoin/issues/6558. In particular, stop parsing JSON after the first object or array is finished. Check that no other garbage follows, and fail the parser if it does.
* univalue: Avoid unnecessary roundtrip through double for numbersWladimir J. van der Laan2015-07-181-3/+3
| | | | | | | | | | JSON makes no distinction between numbers and reals, and our code doesn't need to do so either. This removes VREAL, as well as its specific post-processing in `UniValue::write`. Non-monetary amounts do not need to be forcibly formatted with 8 decimals, so the extra roundtrip was unnecessary (and potentially loses precision).
* UniValue: don't escape solidus, keep espacing of reverse solidusJonas Schnelli2015-06-251-1/+1
|
* Fix univalue handling of \u0000 characters.Daniel Kraft2015-06-111-2/+4
| | | | | | Univalue's parsing of \u escape sequences did not handle NUL characters correctly. They were, effectively, dropped. The extended test-case fails with the old code, and is fixed with this patch.
* univalue: add type check unit testsJonas Schnelli2015-06-041-0/+42
|
* univalue: add support for real, fix percision and make it json_spirit compatibleJonas Schnelli2015-06-041-5/+5
| | | | - avoid breaking the API because of different number/percision handling
* UniValue: prefer .size() to .count(), to harmonize w/ existing treeJeff Garzik2015-06-041-8/+8
|
* tests: add a BasicTestingSetup and apply to all testsWladimir J. van der Laan2015-03-121-1/+2
| | | | | | | | Make sure that chainparams and logging is properly initialized. Doing this for every test may be overkill, but this initialization is so simple that that does not matter. This should fix the travis issues.
* Remove references to X11 licenceMichael Ford2014-12-161-1/+1
|
* UniValue tests: use more BOOST_CHECK()Jeff Garzik2014-08-201-20/+20
|
* UniValue: add unit testsJeff Garzik2014-08-201-0/+275