summaryrefslogtreecommitdiff
path: root/2003/i/buzz/src/date/test_date.cc
diff options
context:
space:
mode:
Diffstat (limited to '2003/i/buzz/src/date/test_date.cc')
-rw-r--r--2003/i/buzz/src/date/test_date.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/2003/i/buzz/src/date/test_date.cc b/2003/i/buzz/src/date/test_date.cc
new file mode 100644
index 0000000..51246a0
--- /dev/null
+++ b/2003/i/buzz/src/date/test_date.cc
@@ -0,0 +1,22 @@
+// test_date.cc
+// buzz - Programme du robot Efrei Robotique I1-I2 2003
+// Copyright (C) 2003 Nicolas Schodet
+//
+#include "date.h"
+
+#include <iostream>
+#include <unistd.h>
+
+int
+main (void)
+{
+ Date d;
+ sleep (2);
+ cout << "date " << d.start () << ' ' << d.round () << endl;
+ d.startRound ();
+ sleep (1);
+ cout << "date " << d.start () << ' ' << d.round () << endl;
+ sleep (2);
+ cout << "date " << d.start () << ' ' << d.round () << endl;
+ return 0;
+}