Tests: Remove 4chan catalog JSON from tree

According to kling, it was "an early stress test for the JSON decoder"
and can be removed now.
This commit is contained in:
sin-ack 2021-04-25 10:01:44 +02:00 committed by Andreas Kling
parent 5b69e8d2c6
commit bb096429ad
3 changed files with 0 additions and 25 deletions

File diff suppressed because one or more lines are too long

View file

@ -65,5 +65,4 @@ foreach(source ${AK_TEST_SOURCES})
endforeach()
get_filename_component(TEST_FRM_RESOLVED ./test.frm REALPATH)
install(FILES ./4chan_catalog.json DESTINATION usr/Tests/AK)
install(FILES ${TEST_FRM_RESOLVED} DESTINATION usr/Tests/AK)

View file

@ -46,29 +46,6 @@ TEST_CASE(load_form)
});
}
BENCHMARK_CASE(load_4chan_catalog)
{
FILE* fp = fopen("4chan_catalog.json", "r");
VERIFY(fp);
StringBuilder builder;
for (;;) {
char buffer[1024];
if (!fgets(buffer, sizeof(buffer), fp))
break;
builder.append(buffer);
}
fclose(fp);
auto json_string = builder.to_string();
for (int i = 0; i < 10; ++i) {
JsonValue form_json = JsonValue::from_string(json_string).value();
EXPECT(form_json.is_array());
}
}
TEST_CASE(json_empty_string)
{
auto json = JsonValue::from_string("\"\"").value();