Merge test folder of test branch
[iotivity.git] / test / extlibs / ArduinoUnit / examples / continuous / continuous.ino
1 #line 2 "continuous.ino"
2 #include <ArduinoUnit.h>
3
4 // test-once test named "once"
5 test(once)
6 {
7   int x=1;
8   assertLessOrEqual(x,1);
9 }
10
11 // test-until-skip-pass-or-fail test named "continuous"
12 testing(continuous)
13 {
14   unsigned long t = millis();
15   assertLessOrEqual(t,100);
16   if (t >= 100) pass();
17 }
18
19 void setup()
20 {
21   Serial.begin(9600);
22   while(!Serial); // for the Arduino Leonardo/Micro only
23 }
24
25 void loop()
26 {
27   Test::run();
28 }