aboutsummaryrefslogtreecommitdiff
path: root/tests/test_generate.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-11-29 00:33:10 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-11-29 00:33:10 +0000
commit1eea90048f8f0e6360171d254c1f60f41a090814 (patch)
tree4aae5869b82bf4066989c1dce79dc9f06fa9526b /tests/test_generate.c
parent8f2b0cccb4a7a7fe296db2f59cb6cdbfbec9291b (diff)
downloadsrc-1eea90048f8f0e6360171d254c1f60f41a090814.tar.gz
src-1eea90048f8f0e6360171d254c1f60f41a090814.zip
Update libucl to latest versionvendor/libucl/20141129
Notes
Notes: svn path=/vendor/libucl/dist/; revision=275221 svn path=/vendor/libucl/20141129/; revision=275222; tag=vendor/libucl/20141129
Diffstat (limited to 'tests/test_generate.c')
-rw-r--r--tests/test_generate.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_generate.c b/tests/test_generate.c
index 5c130e67499a..aad92b51fb0e 100644
--- a/tests/test_generate.c
+++ b/tests/test_generate.c
@@ -54,6 +54,13 @@ main (int argc, char **argv)
}
obj = ucl_object_typed_new (UCL_OBJECT);
+
+ /* Keys replacing */
+ cur = ucl_object_fromstring_common ("value1", 0, UCL_STRING_TRIM);
+ ucl_object_insert_key (obj, cur, "key0", 0, false);
+ cur = ucl_object_fromdouble (0.1);
+ ucl_object_replace_key (obj, cur, "key0", 0, false);
+
/* Create some strings */
cur = ucl_object_fromstring_common (" test string ", 0, UCL_STRING_TRIM);
ucl_object_insert_key (obj, cur, "key1", 0, false);