aboutsummaryrefslogtreecommitdiff
path: root/src/test/univalue_tests.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge #9281: Refactor: Remove using namespace <xxx> from bench/ & test/ sourcesMarcoFalke2017-01-051-20/+17
|\ | | | | | | 73f4119 Refactoring: Removed using namespace <xxx> from bench/ and test/ source files. (Karl-Johan Alm)
| * Refactoring: Removed using namespace <xxx> from bench/ and test/ source files.Karl-Johan Alm2017-01-021-20/+17
| |
* | Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-311-1/+1
|/ | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* [copyright] copyright header style uniformisle29832016-11-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Three categories of modifications: 1) 1 instance of 'The Bitcoin Core developers \n', 1 instance of 'the Bitcoin Core developers\n', 3 instances of 'Bitcoin Core Developers\n', and 12 instances of 'The Bitcoin developers\n' are made uniform with the 443 instances of 'The Bitcoin Core developers\n' 2) 3 instances of 'BitPay, Inc\.\n' are made uniform with the other 6 instances of 'BitPay Inc\.\n' 3) 4 instances where there was no '(c)' between the 'Copyright' and the year where it deviates from the style of the local directory.
* Add missing copyright headersMarcoFalke2016-01-051-0/+1
|
* [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