Skip to content

Commit

Permalink
A-TextUiTesting
Browse files Browse the repository at this point in the history
  • Loading branch information
jellywaiyan committed Aug 23, 2023
1 parent 855fdbe commit 8ad03a0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
16 changes: 9 additions & 7 deletions text-ui-test/EXPECTED.TXT
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
Hello from
____ _
| _ \ _ _| | _____
| | | | | | | |/ / _ \
| |_| | |_| | < __/
|____/ \__,_|_|\_\___|

Ok! I've added this task:
[T][ ] read book
Now you have 1 tasks in the list.
Ok! I've added this task:
[D][ ] read a novel (by: 12pm tonight)
Now you have 2 tasks in the list.
Ok! I've added this task:
[E][ ] attend a party (from: 2pm today to: 6.30pm tonight)
Now you have 3 tasks in the list.
3 changes: 3 additions & 0 deletions text-ui-test/input.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
todo read book
deadline read a novel /by 12pm tonight
event attend a party /from 2pm today /to 6.30pm tonight
2 changes: 1 addition & 1 deletion text-ui-test/runtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ then
fi

# run the program, feed commands from input.txt file and redirect the output to the ACTUAL.TXT
java -classpath ../bin Duke < input.txt > ACTUAL.TXT
java -classpath ../bin Jelly < input.txt > ACTUAL.TXT

# convert to UNIX format
cp EXPECTED.TXT EXPECTED-UNIX.TXT
Expand Down

0 comments on commit 8ad03a0

Please sign in to comment.