Unit tests for SmartRest
Dependencies: C027 SmartRest mbed
main.cpp@0:789029e49ea1, 2014-03-24 (annotated)
- Committer:
- vwochnik
- Date:
- Mon Mar 24 10:12:45 2014 +0000
- Revision:
- 0:789029e49ea1
fix
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
vwochnik | 0:789029e49ea1 | 1 | #include "mbed.h" |
vwochnik | 0:789029e49ea1 | 2 | #include "C027.h" |
vwochnik | 0:789029e49ea1 | 3 | #include <stdlib.h> |
vwochnik | 0:789029e49ea1 | 4 | #include <stdio.h> |
vwochnik | 0:789029e49ea1 | 5 | #include "SmartRestTest.h" |
vwochnik | 0:789029e49ea1 | 6 | #include "ParserTest.h" |
vwochnik | 0:789029e49ea1 | 7 | #include "CharValueTest.h" |
vwochnik | 0:789029e49ea1 | 8 | #include "FloatValueTest.h" |
vwochnik | 0:789029e49ea1 | 9 | #include "IntegerValueTest.h" |
vwochnik | 0:789029e49ea1 | 10 | #include "ParsedValueTest.h" |
vwochnik | 0:789029e49ea1 | 11 | #include "ComposedRecordTest.h" |
vwochnik | 0:789029e49ea1 | 12 | #include "AggregatorTest.h" |
vwochnik | 0:789029e49ea1 | 13 | |
vwochnik | 0:789029e49ea1 | 14 | int main() { |
vwochnik | 0:789029e49ea1 | 15 | puts("Hello!"); |
vwochnik | 0:789029e49ea1 | 16 | puts("Testing client..."); |
vwochnik | 0:789029e49ea1 | 17 | SmartRestTest test1; |
vwochnik | 0:789029e49ea1 | 18 | test1.test(); |
vwochnik | 0:789029e49ea1 | 19 | |
vwochnik | 0:789029e49ea1 | 20 | puts("Testing parser..."); |
vwochnik | 0:789029e49ea1 | 21 | ParserTest test2; |
vwochnik | 0:789029e49ea1 | 22 | test2.testAll(); |
vwochnik | 0:789029e49ea1 | 23 | |
vwochnik | 0:789029e49ea1 | 24 | puts("Testing values..."); |
vwochnik | 0:789029e49ea1 | 25 | CharValueTest test3; |
vwochnik | 0:789029e49ea1 | 26 | test3.test(); |
vwochnik | 0:789029e49ea1 | 27 | FloatValueTest test4; |
vwochnik | 0:789029e49ea1 | 28 | test4.test(); |
vwochnik | 0:789029e49ea1 | 29 | IntegerValueTest test5; |
vwochnik | 0:789029e49ea1 | 30 | test5.test(); |
vwochnik | 0:789029e49ea1 | 31 | ParsedValueTest test6; |
vwochnik | 0:789029e49ea1 | 32 | test6.test(); |
vwochnik | 0:789029e49ea1 | 33 | ComposedRecordTest test7; |
vwochnik | 0:789029e49ea1 | 34 | test7.test(); |
vwochnik | 0:789029e49ea1 | 35 | AggregatorTest test8; |
vwochnik | 0:789029e49ea1 | 36 | test8.testAll(); |
vwochnik | 0:789029e49ea1 | 37 | |
vwochnik | 0:789029e49ea1 | 38 | puts("Everything is OK."); |
vwochnik | 0:789029e49ea1 | 39 | } |