rage / java-programming

https://java-programming.mooc.fi
521 stars 213 forks source link

Inconsistency in given and expected output (Part 6 -> Separating the user interface from program logic -> To do list) #420

Open iwtga opened 1 year ago

iwtga commented 1 year ago

Given Expected Working of Program:

Command: add
Task: go to the store
Command: add
Task: vacuum clean
Command: list
1: go to the store
2: vacuum clean
Command: completed
Which task was completed? 2
Task go to the store tehty
Command: list
1: go to the store
Command: add
Task: program
Command: list
1: go to the store
2: program
Command: stop

What actually is achieved at the end of the exerceise:

Command: add
To add: write an essay
Command: add
To add: read a book
Command: list
1: write an essay
2: read a book
Command: remove
Which one is removed? 1
Command: list
1: read a book
Command: remove
Which one is removed? 1
Command: list
Command: add
To add: stop
Command: list
1: stop
Command: stop

Discrepancies:

Command: completed
Which task was completed? 2

should be:

Command: remove
Which one is removed? 2