mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:37:35 +00:00
AK: Add a new TestSuite.h from my own work, adapted to match the existing one a bit
This gives a few new features: * benchmarks * the ability to run individual testcases easily * timing of tests
This commit is contained in:
parent
df3e295ba6
commit
41d2c674d7
8 changed files with 386 additions and 136 deletions
|
@ -1,4 +1,4 @@
|
|||
#include "TestHelpers.h"
|
||||
#include <AK/TestSuite.h>
|
||||
#include <AK/AKString.h>
|
||||
#include <AK/HashMap.h>
|
||||
#include <AK/JsonArray.h>
|
||||
|
@ -6,9 +6,7 @@
|
|||
#include <AK/JsonValue.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
|
||||
typedef HashMap<int, int> IntIntMap;
|
||||
|
||||
int main()
|
||||
TEST_CASE(load_form)
|
||||
{
|
||||
FILE* fp = fopen("../../Base/home/anon/test.frm", "r");
|
||||
ASSERT(fp);
|
||||
|
@ -42,6 +40,6 @@ int main()
|
|||
//dbgprintf("Set property %s.%s to '%s'\n", widget_class.characters(), property_name.characters(), property_value.serialized().characters());
|
||||
});
|
||||
});
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
TEST_MAIN(JSON)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue