| 56 | } |
| 57 | |
| 58 | static void cjson_minify_should_remove_spaces(void) |
| 59 | { |
| 60 | const char to_minify[] = "{ \"key\":\ttrue\r\n }"; |
| 61 | |
| 62 | char* minified = (char*) malloc(sizeof(to_minify)); |
| 63 | TEST_ASSERT_NOT_NULL(minified); |
| 64 | strcpy(minified, to_minify); |
| 65 | |
| 66 | cJSON_Minify(minified); |
| 67 | TEST_ASSERT_EQUAL_STRING("{\"key\":true}", minified); |
| 68 | |
| 69 | free(minified); |
| 70 | } |
| 71 | |
| 72 | static void cjson_minify_should_remove_multiline_comments(void) |
| 73 | { |
nothing calls this directly
no test coverage detected
searching dependent graphs…