aboutsummaryrefslogtreecommitdiff
path: root/src/univalue/test/no_nul.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2017-09-29 14:31:36 +0200
committerMarcoFalke <falke.marco@gmail.com>2017-09-29 14:35:46 +0200
commitfaaeeb0d3e777d991c7cfee983bea369c109f5cc (patch)
treec55d3d58f96acbbe9a4fc4ccd5b6f3a7e638a179 /src/univalue/test/no_nul.cpp
parentbbc901d3a683c92438a6b28dca50b956decc4433 (diff)
parent619bb05037a55c4b73973965989d199d8cb62f74 (diff)
Bump univalue and fix json formatting in tests
This merge commit bumps the univalue subtree and also updates the whitespace for some failing tests.
Diffstat (limited to 'src/univalue/test/no_nul.cpp')
-rw-r--r--src/univalue/test/no_nul.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/univalue/test/no_nul.cpp b/src/univalue/test/no_nul.cpp
new file mode 100644
index 0000000000..83d292200b
--- /dev/null
+++ b/src/univalue/test/no_nul.cpp
@@ -0,0 +1,8 @@
+#include "univalue.h"
+
+int main (int argc, char *argv[])
+{
+ char buf[] = "___[1,2,3]___";
+ UniValue val;
+ return val.read(buf + 3, 7) ? 0 : 1;
+}