aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJoe Hildebrand <joe-github@cursive.net>2015-04-01 16:26:02 -0600
committerJoe Hildebrand <joe-github@cursive.net>2015-04-01 16:26:02 -0600
commit7e4cb53adeb05c938807fb6aa196e6abac27eb0a (patch)
tree4b8f681b0c22a0bdb4ab50c907a150c2ed7cc0f4 /test
parent74954bbf2ade6cf97b9ac98b10326dedd8dcea3d (diff)
downloadplatform_external_cn-cbor-7e4cb53adeb05c938807fb6aa196e6abac27eb0a.tar.gz
platform_external_cn-cbor-7e4cb53adeb05c938807fb6aa196e6abac27eb0a.tar.bz2
platform_external_cn-cbor-7e4cb53adeb05c938807fb6aa196e6abac27eb0a.zip
make it work with contexts again
Diffstat (limited to 'test')
-rw-r--r--test/cbor_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/cbor_test.c b/test/cbor_test.c
index 9c32725..5e0b302 100644
--- a/test/cbor_test.c
+++ b/test/cbor_test.c
@@ -266,8 +266,8 @@ CTEST(cbor, create)
cn_cbor_map_put(cb_map,
cn_cbor_string_create("bar" CONTEXT_NULL, &err),
- cn_cbor_string_create("qux" CONTEXT_NULL, &err)
- CONTEXT_NULL, &err);
+ cn_cbor_string_create("qux" CONTEXT_NULL, &err),
+ &err);
ASSERT_TRUE(err.err == CN_CBOR_NO_ERROR);
ASSERT_TRUE(cb_map->length == 8);
@@ -291,7 +291,7 @@ CTEST(cbor, map_errors)
ASSERT_EQUAL(err.err, CN_CBOR_ERR_INVALID_PARAMETER);
cn_cbor_mapput_string(ci, "foo", NULL, CONTEXT_NULL_COMMA &err);
ASSERT_EQUAL(err.err, CN_CBOR_ERR_INVALID_PARAMETER);
- cn_cbor_map_put(ci, NULL, NULL, CONTEXT_NULL_COMMA &err);
+ cn_cbor_map_put(ci, NULL, NULL, &err);
}
CTEST(cbor, array)