| 42 | } |
| 43 | |
| 44 | static void cjson_minify_should_remove_single_line_comments(void) |
| 45 | { |
| 46 | const char to_minify[] = "{// this is {} \"some kind\" of [] comment /*, don't you see\n}"; |
| 47 | |
| 48 | char* minified = (char*) malloc(sizeof(to_minify)); |
| 49 | TEST_ASSERT_NOT_NULL(minified); |
| 50 | strcpy(minified, to_minify); |
| 51 | |
| 52 | cJSON_Minify(minified); |
| 53 | TEST_ASSERT_EQUAL_STRING("{}", minified); |
| 54 | |
| 55 | free(minified); |
| 56 | } |
| 57 | |
| 58 | static void cjson_minify_should_remove_spaces(void) |
| 59 | { |
nothing calls this directly
no test coverage detected
searching dependent graphs…