Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Project

Todo List

In this project we will add tests tp the todolist application

Create a class
TodoItem with a field

  • task
  • priority

TodoList with methods

  • add - give an error if an item already exists
  • list - give an error if the list has more then 10 items
  • delete - give an error if an item does not exist

Write test on all the functions.

Shopping basket

In this project we will create a shoppingbasket application Create the classes

Article with the fields

  • name
  • price
  • amount

ShoppingBasket with the methods

  • add - give an error if an article already exists
  • list - give an error if the list has no items
  • delete - give an error if an item does not exist

Add filter function on prices between an low and high value

Write tests on all the functions.