Parallel Change Kata


Inspired by Pawel Duda & Carlos Ble

Your Task

Change the class ShoppingCart in the package field.

The class should be handle multiple int items instead of a single one.

Tests have already been written.


The tests must not be red at any time. No compile-errors, no failures. (The only exception is for a few seconds while you write a single line of code.)

Get the Code

On GitHub (This kata can be done using C++, C#, Go, Java, JavaScript, PHP, Python, Ruby, Swift) If your favorite language is missing, feel free to create a pull request. Be sure the maintainer will be happy ;-)

Image credits

Image by Egga. It shows an exemplary flip chart to facilitate the kata.