Skip to content
This repository has been archived by the owner on Jun 22, 2019. It is now read-only.

Commit

Permalink
Fix testcases 3
Browse files Browse the repository at this point in the history
  • Loading branch information
mreza-kiani committed May 14, 2019
1 parent 5f03159 commit 1922206
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Part-3/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ counter=0
for i in {1..6}
do
cp testcases/$i/main.cpp $1/
make clean
make
./$2 2>&1 | diff testcases/$i/$i.txt -
if ! ./$2 2>&1 | diff -rq -B -Z testcases/$i/$i.txt -; then
if ! ./$2 2>&1 | diff -rq -B testcases/$i/$i.txt -; then
echo -e "${RED}$i - Failed!${NC}"
else
echo -e "${GREEN}$i - Passed!${NC}"
Expand Down
1 change: 1 addition & 0 deletions Part-3/testcases/1/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <iostream>
#include "game_manager.h"

using namespace std;
Expand Down
1 change: 1 addition & 0 deletions Part-3/testcases/2/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <iostream>
#include "game_manager.h"

using namespace std;
Expand Down
1 change: 1 addition & 0 deletions Part-3/testcases/3/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <iostream>
#include "game_manager.h"

using namespace std;
Expand Down
1 change: 1 addition & 0 deletions Part-3/testcases/4/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <iostream>
#include "game_manager.h"

using namespace std;
Expand Down
1 change: 1 addition & 0 deletions Part-3/testcases/5/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <iostream>
#include "game_manager.h"

using namespace std;
Expand Down
1 change: 1 addition & 0 deletions Part-3/testcases/6/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <iostream>
#include "game_manager.h"

using namespace std;
Expand Down

0 comments on commit 1922206

Please sign in to comment.