Skip to content

Conversation

@Hedbom98
Copy link

@Hedbom98 Hedbom98 commented Jan 9, 2025

No description provided.


HashMap<String, Boolean> tasks = new HashMap<>();

public TodoList(){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am noit sure why you pre-popuate the hashmap?



// Task 3
public boolean updateTaskStatus(String task, Boolean status){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not look right; we should be using accessors here

Mattias Hedbom added 18 commits January 14, 2025 09:50
…the TodoItem class so it takes a LocalDateTime object. Could not figure out how to compare the dates in the test if dates where generated by LocalDateTime.now() in the constructor of TodoItem. Thus I also changed the test slightly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants