mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
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:
parent
5b69e8d2c6
commit
bb096429ad
3 changed files with 0 additions and 25 deletions
File diff suppressed because one or more lines are too long
|
@ -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)
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue