Ad
  • Custom User Avatar

    Thank you. Now, it works.

  • Custom User Avatar

    Golang

    Getting the error : can't load package: package codewarrior/main: found packages main (main_suite_test.go) and kata (main_test.go) in /workspace

  • Custom User Avatar

    Cool! I didn't know that I am able do that with older solutions. Before I just created another one brand new in such case.
    Thank you!

  • Custom User Avatar

    No, that's mistake. Thank you.
    This part of code from older solution. I didn't understood task correctly at first. I thought that price is not constant and you should pay different price for each liter. For example if initial price was 10, and you buy 7 liters it should be:
    10 + 10 + 9.95 + 9.95 + 9.90 + 9.90 + 9.85
    BTW I think such case will be more interesting as a kata.