]> rtime.felk.cvut.cz Git - hubacji1/bcar.git/blob - ut/pslot.t.cc
Merge branch 'feature/parking-slot'
[hubacji1/bcar.git] / ut / pslot.t.cc
1 #include <cmath>
2 #include "wvtest.h"
3
4 #include "pslot.h"
5
6 WVTEST_MAIN("pslot basic geometry")
7 {
8         ParkingSlot *ps = new ParkingSlot();
9         ps->border(1, 1, 3, 3, 2, 4, 0, 2);
10
11         // slot info
12         WVPASS(ps->right());
13         WVPASS(!ps->parallel());
14         WVPASSEQ_DOUBLE(ps->heading(), M_PI * 3 / 4, 0.00001);
15 }