Unit tests for SmartRest

Dependencies:   C027 SmartRest mbed

Revision:
0:789029e49ea1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Mar 24 10:12:45 2014 +0000
@@ -0,0 +1,39 @@
+#include "mbed.h"
+#include "C027.h"
+#include <stdlib.h>
+#include <stdio.h>
+#include "SmartRestTest.h"
+#include "ParserTest.h"
+#include "CharValueTest.h"
+#include "FloatValueTest.h"
+#include "IntegerValueTest.h"
+#include "ParsedValueTest.h"
+#include "ComposedRecordTest.h"
+#include "AggregatorTest.h"
+
+int main() {
+    puts("Hello!");
+    puts("Testing client...");
+    SmartRestTest test1;
+    test1.test();
+    
+    puts("Testing parser...");
+    ParserTest test2;
+    test2.testAll();
+    
+    puts("Testing values...");
+    CharValueTest test3;
+    test3.test();
+    FloatValueTest test4;
+    test4.test();
+    IntegerValueTest test5;
+    test5.test();
+    ParsedValueTest test6;
+    test6.test();
+    ComposedRecordTest test7;
+    test7.test();
+    AggregatorTest test8;
+    test8.testAll();
+
+    puts("Everything is OK.");
+}