Unit tests for SmartRest

Dependencies:   C027 SmartRest mbed

main.cpp

Committer:
vwochnik
Date:
2014-03-24
Revision:
0:789029e49ea1

File content as of revision 0:789029e49ea1:

#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.");
}