• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
aSproule Avatar
Name:Andrew Sproule
Clan:Unknown
Skills:javascript
Member Since:Aug 2016
Last Seen:Nov 2023
Profiles:
    Following:1
    Followers:2
    Allies:1
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (115)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • AndyHawk
      • commented on "Fuel Calculator: Total Cost" kata
      • 6 months ago

      More tests for different cases are needed, I guess. At least for Python. Sometimes Kata allows me to submit a wrong solution, sometimes - not

    • Custom User Avatar
      • shreedave
      • commented on "Fuel Calculator: Total Cost" kata
      • 6 months ago

      Nice kata, but could have been worded more clearly.

    • Custom User Avatar
      • KayleighWasTaken
      • created an issue for "Fuel Calculator: Total Cost" kata
      • 9 months ago

      Uses exact equality on floats.

    • Custom User Avatar
      • Ganijon
      • commented on "Fuel Calculator: Total Cost" kata
      • 10 months ago

      This comment is hidden because it contains spoiler information about the solution

    • Custom User Avatar
      • Chrono79
      • commented on "Fuel Calculator: Total Cost" kata
      • 12 months ago

      See the quotes in your answer, the expected value is a number.

    • Custom User Avatar
      • Blind4Basics
      • commented on "Fuel Calculator: Total Cost" kata
      • 12 months ago

      which is obviously incorrect, isn't it?

    • Custom User Avatar
      • claudiaalmeidavs
      • commented on "Fuel Calculator: Total Cost" kata
      • 12 months ago

      Got this result expected '5.65' to equal 5.65

    • Custom User Avatar
      • Harshak-r1
      • commented on "Fuel Calculator: Total Cost" kata
      • 17 months ago

      This comment is hidden because it contains spoiler information about the solution

    • Custom User Avatar
      • ejini战神
      • resolved a suggestion on "Fuel Calculator: Total Cost" kata
      • 17 months ago

      Approved

    • Custom User Avatar
      • saudiGuy
      • created a suggestion for "Fuel Calculator: Total Cost" kata
      • 2 years ago

      python new test framework is required. updated in this fork

    • Custom User Avatar
      • hobovsky
      • created a suggestion for "Weird words " kata
      • 2 years ago

      This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/203.
      Please join the discussion to help us identify duplicate kata and retire them.

    • Custom User Avatar
      • rowcased
      • created a suggestion for "Fuel Calculator: Total Cost" kata
      • 2 years ago

      C Translation (author inactive).

    • Custom User Avatar
      • Chrono79
      • created an issue for "Fuel Calculator: Total Cost" kata
      • 2 years ago

      All border cases should be tested, 2, 4, 8 and 10 litres in fixed tests in all languages.

    • Custom User Avatar
      • Chrono79
      • resolved an issue on "Fuel Calculator: Total Cost" kata
      • 2 years ago

      Not a kata issue, one of your conditions is wrong:

      Purchases of 2 or more litres get a discount of 5 cents per litre

      You're doing a 50 cents discount. And because border cases aren't tested your code passed.

    • Custom User Avatar
      • Chrono79
      • commented on "Fuel Calculator: Total Cost" kata
      • 2 years ago

      Nothing is broken, your switch conditions are wrong:

      Purchases of 2 or more litres get a discount of 5 cents per litre...

      so I know im getting the discount correct

      No, you're not, see the second sample test, print discount value.

    • Loading more items...
    • © 2025 Codewars
    • About
    • API
    • Blog
    • Privacy
    • Terms
    • Code of Conduct
    • Contact

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...