Stop inherits from Position
[cs356-p1-elevator.git] / test.cpp
1 #include <iostream>
2 using namespace std;
3
4 //#include "elevator.hpp"
5 #include "stop.hpp"
6
7 int main (int argc, char *argv[])
8 {
9         Stop s1 (1, DOWN);
10         Stop s2 (2, DOWN);
11
12         if (s1 > s2)
13                 cout << "s1 > s2" << endl;
14         else if (s1 == s2)
15                 cout << "s1 == s2" << endl;
16         else if (s1 < s2)
17                 cout << "s1 < s2" << endl;
18         else
19                 cout << "BAD BAD BAD" << endl;
20
21         return 0;
22 }
23