fix names to be matching so it sets a good example for testing

Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/1c3f5ac7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/1c3f5ac7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/1c3f5ac7

Branch: refs/heads/develop
Commit: 1c3f5ac76b81b5c7f4b7f0375d4a684ec888891e
Parents: 32dd023
Author: Paul Dietrich <paulfdietr...@yahoo.com>
Authored: Fri Mar 11 09:32:49 2016 -0800
Committer: Paul Dietrich <paulfdietr...@yahoo.com>
Committed: Fri Mar 11 13:07:20 2016 -0800

----------------------------------------------------------------------
 libs/json/src/test/test_json.c        | 8 ++++----
 libs/json/src/test/test_json.h        | 5 ++---
 libs/json/src/test/test_json_simple.c | 5 ++---
 3 files changed, 8 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/1c3f5ac7/libs/json/src/test/test_json.c
----------------------------------------------------------------------
diff --git a/libs/json/src/test/test_json.c b/libs/json/src/test/test_json.c
index 78495dd..80e9abe 100644
--- a/libs/json/src/test/test_json.c
+++ b/libs/json/src/test/test_json.c
@@ -20,9 +20,9 @@
 #include <test_json.h>
 
 
-TEST_SUITE(test_suite_json) {
-    test_encode_simple();
-    test_decode_simple();
+TEST_SUITE(test_json_suite) {
+    test_json_simple_encode();
+    test_json_simple_decode();
 }
 
 #ifdef MYNEWT_SELFTEST
@@ -33,7 +33,7 @@ main(int argc, char **argv)
     tu_config.tc_print_results = 1;
     tu_init();
 
-    test_suite_json();
+    test_json_suite();
 
     return tu_any_failed;
 }

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/1c3f5ac7/libs/json/src/test/test_json.h
----------------------------------------------------------------------
diff --git a/libs/json/src/test/test_json.h b/libs/json/src/test/test_json.h
index b63109e..8466213 100644
--- a/libs/json/src/test/test_json.h
+++ b/libs/json/src/test/test_json.h
@@ -20,9 +20,8 @@
 #ifndef TEST_JSON_H
 #define TEST_JSON_H
 
-void test_encode_simple(void);
-void test_decode_simple(void);
-
+void test_json_simple_encode(void);
+void test_json_simple_decode(void);
 
 #endif /* TEST_JSON_H */
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/1c3f5ac7/libs/json/src/test/test_json_simple.c
----------------------------------------------------------------------
diff --git a/libs/json/src/test/test_json_simple.c 
b/libs/json/src/test/test_json_simple.c
index 7b8ff97..e6c5590 100644
--- a/libs/json/src/test/test_json_simple.c
+++ b/libs/json/src/test/test_json_simple.c
@@ -37,13 +37,12 @@ static int buf_index;
 static int test_write(void *buf, char* data, int len) {
     int i;
     for(i = 0; i < len; i++) {
-        putchar(data[i]);
         bigbuf[buf_index++] = data[i];        
     }
     return len;
 }
 
-void test_encode_simple(void) {
+void test_json_simple_encode(void) {
     struct json_encoder encoder;
     struct json_value value;
     int rc;
@@ -126,7 +125,7 @@ test_jbuf_readn(struct json_buffer *jb, char *buf, int 
size) {
 }
 
 /* now test the decode on a string */
-void test_decode_simple(void) {
+void test_json_simple_decode(void) {
     struct test_jbuf tjb; 
     unsigned int uint_val;
     int int_val;

Reply via email to