Skip to content

scooper91/checkout-kata-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Checkout Kata - Go

Test

Simple kata to get the overall cost of a basket given items.

Requirements

  • Docker

Testing

make test

This will run a Golang container, which will build the app and run the tests

Kata Instructions

You should implement a supermarket checkout which:

  • always accepts a string of items and gives back the total price
  • discounts any offers from the total price

Use the following pricing information:

Item Price Offer
A 50 3 for 130
B 30 2 for 45
C 20 N/A
D 15 N/A

For example:

  • 'DABA' gives 145
  • 'BBBB' gives 90

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published