Skip to content
Snippets Groups Projects
Commit 56a8f8a1 authored by tobiglaser's avatar tobiglaser
Browse files

update testing procedure

parent 90ad67d5
No related branches found
No related tags found
No related merge requests found
#include <iostream>
#include "CommandListOWN.h"
#include "Gear.h"
#include "Direction.h"
#include "Pause.h"
int main(int argc, char const *argv[])
{
......@@ -8,19 +11,15 @@ int main(int argc, char const *argv[])
CommandList list;
cout << list.getSize() << '\n';
list.printCommands();
list.add(Command("First"));
list.add(Gear(4, 20));
cout << list.getSize() << '\n';
list.printCommands();
list.add(Command("Second"));
cout << list.getSize() << '\n';
list.printCommands();
list.add(Command("Third"));
cout << list.getSize() << '\n';
list.printCommands();
list.add(Command("Fourth"));
list.createCommands();
cout << list.getSize() << '\n';
list.printCommands();
list.add(Command("Fifth"));
list.add(Pause(3.14));
cout << list.getSize() << '\n';
list.printCommands();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment