summaryrefslogtreecommitdiff
path: root/AK/Tests/TestJSON.cpp
diff options
context:
space:
mode:
authorRobin Burchell <robin+git@viroteck.net>2019-07-16 10:08:39 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-07-16 11:03:38 +0200
commit41d2c674d764314c2930bcf4bfcf2992bf6b5cb8 (patch)
treec26da13d12db7942425192dbee354993cc4c27b9 /AK/Tests/TestJSON.cpp
parentdf3e295ba6ee69f0b178c581f1d91f8c322c0c4d (diff)
downloadserenity-41d2c674d764314c2930bcf4bfcf2992bf6b5cb8.zip
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
Diffstat (limited to 'AK/Tests/TestJSON.cpp')
-rw-r--r--AK/Tests/TestJSON.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/AK/Tests/TestJSON.cpp b/AK/Tests/TestJSON.cpp
index 72fb007de5..875ba6b99a 100644
--- a/AK/Tests/TestJSON.cpp
+++ b/AK/Tests/TestJSON.cpp
@@ -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)