diff options
author | bapt <bapt@FreeBSD.org> | 2014-11-29 00:45:09 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-11-29 00:45:09 +0000 |
commit | 7d08b91413fa16522ce2fe9052df826886fe42e4 (patch) | |
tree | da7419ce979eaeb23133fbdfa13129abcde1cfc9 /contrib/libucl/tests/test_generate.c | |
parent | 2aa5fef0aaa6b189fbabb79e67c84c76a4a40d3b (diff) | |
parent | 040f7be2fc3d89695611d460fd55d9b018fd7aa2 (diff) | |
download | FreeBSD-src-7d08b91413fa16522ce2fe9052df826886fe42e4.zip FreeBSD-src-7d08b91413fa16522ce2fe9052df826886fe42e4.tar.gz |
Update libucl to latest version
While here correctly link libucl to libm and register the dependency on libm
for static building
Diffstat (limited to 'contrib/libucl/tests/test_generate.c')
-rw-r--r-- | contrib/libucl/tests/test_generate.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/libucl/tests/test_generate.c b/contrib/libucl/tests/test_generate.c index 5c130e6..aad92b5 100644 --- a/contrib/libucl/tests/test_generate.c +++ b/contrib/libucl/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); |