An open API service indexing awesome lists of open source software.

https://github.com/albertllousas/beverages-pricing-refactoring-kata

Kata to practice TDD on legacy code with bad inheritance
https://github.com/albertllousas/beverages-pricing-refactoring-kata

Last synced: about 2 months ago
JSON representation

Kata to practice TDD on legacy code with bad inheritance

Awesome Lists containing this project

README

        

# Beverage refactoring kata

## Description

Kata to practice refactoring away from a bad inheritance usage with TDD.

Kotlin version of the kata from [here](https://github.com/trikitrok/beverages_pricing_refactoring_kata)

## Goal
This code computes the prices of the beverages served in our coffee house.

We'd like you to add an optional cinnamon supplement that costs 0.05€
to all our existing catalog of beverages.

### Tips:
You might want to refactor the code a bit first.