Romain Ame
/
Timer71pt
Fork de Timer après le match à 61 points
Fork of Timer by
Diff: tests.cpp
- Revision:
- 81:e7b03e81b025
- Child:
- 84:b54822c913b0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests.cpp Thu May 05 18:17:08 2016 +0000 @@ -0,0 +1,28 @@ +#include "entete.h" + +void wait_start() { + while (start == 1); + while (start == 0); +} + +void TestDist3(float start, float pas) { + GotoDist(start); + wait_start(); + GotoDist(start + pas); + wait_start(); + GotoDist(start + 2 * pas); +} + +void TestThet3(float start, float pas) { + GotoThet(start, GAUCHE); + wait_start(); + GotoThet(start + pas, GAUCHE); + wait_start(); + GotoThet(start + 2 * pas, GAUCHE); +} + +void compareThet(float start) { + GotoThet(start, DROITE); + wait_start(); + GotoThet(start, GAUCHE); +} \ No newline at end of file