Skip to content

Commit 2a96c9b

Browse files
committed
Uncommnet a tes
1 parent cd98a25 commit 2a96c9b

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

tests/src/main.c

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -68,24 +68,24 @@ int main(void)
6868
(void) printf("%s\n", dst.c_value.c_str);*/
6969

7070

71-
// if (-1 == cjlib_json_get(&dst, &json_file, "configurations")) {
72-
// (void) printf("Error\n");
73-
// exit(-1);
74-
// }
75-
76-
// if (-1 == cjlib_json_array_get(&dst, 0, dst.c_value.c_arr)) {
77-
// (void) printf("Error\n");
78-
// exit(-1);
79-
// }
80-
81-
// if (-1 == cjlib_json_object_get(&dst, dst.c_value.c_obj, "program")) {
82-
// (void) printf("Error\n");
83-
// exit(-1);
84-
// }
71+
if (-1 == cjlib_json_get(&dst, &json_file, "configurations")) {
72+
(void) printf("Error\n");
73+
exit(-1);
74+
}
75+
76+
if (-1 == cjlib_json_array_get(&dst, 0, dst.c_value.c_arr)) {
77+
(void) printf("Error\n");
78+
exit(-1);
79+
}
80+
81+
if (-1 == cjlib_json_object_get(&dst, dst.c_value.c_obj, "program")) {
82+
(void) printf("Error\n");
83+
exit(-1);
84+
}
8585

86-
// (void) printf("%s\n", dst.c_value.c_str);
86+
(void) printf("%s\n", dst.c_value.c_str);
8787

88-
cjlib_json_stringtify(&json_file);
88+
//cjlib_json_stringtify(&json_file);
8989

9090
// // Close the json file.
9191
cjlib_json_close(&json_file);

0 commit comments

Comments
 (0)