Skip to content

Commit

Permalink
A-TextUiTesting
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaeliaaa committed Aug 14, 2020
1 parent 6c4d6f1 commit d2daba4
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/main/java/Duke.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static void commands() {
public static void bye() {
String bye = " ____________________________________________________________"
+ "\n Bye! Hope to see you again soon."
+ "\n ____________________________________________________________\n";
+ "\n ____________________________________________________________";
System.out.println(bye);
}

Expand Down
33 changes: 25 additions & 8 deletions text-ui-test/EXPECTED.TXT
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
Hello! I'm Duke
What can I do for you?
Got it. I've added this task:
[T] [✘] borrow book tonight
Now you have 1 tasks in the list.
Here are the tasks in your list:
1. [T] [✘] borrow book tonight
Bye. Hope to see you again soon!
____ _
| _ \ _ _| | _____
| | | | | | | |/ / _ \
| |_| | |_| | < __/
|____/ \__,_|_|\_\___|

____________________________________________________________
Hello! I'm Duke
What can I do for you?
____________________________________________________________

____________________________________________________________
Got it. I've added this task:
[T][?] borrow book tonight
Now you have 1 tasks in the list.
____________________________________________________________

____________________________________________________________
Here are the tasks in your list:
1. [T][?] borrow book tonight
____________________________________________________________

____________________________________________________________
Bye! Hope to see you again soon.
____________________________________________________________
6 changes: 5 additions & 1 deletion text-ui-test/runtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ then
fi

# compile the code into the bin folder, terminates if error occurred
if ! javac -cp ../src -Xlint:none -d ../bin ../src/main/java/Duke.java
if
! (
find ../src/main/java -name "*.java" >sources.txt
javac -cp ../src -Xlint:none -d ../bin @sources.txt
)
then
echo "********** BUILD FAILURE **********"
exit 1
Expand Down

0 comments on commit d2daba4

Please sign in to comment.