6 kyu

Converting Measures

217 of 461PollyRibeiro
Description
Loading description...
Regular Expressions
Algorithms
  • Please sign in or sign up to leave a comment.
  • saudiGuy Avatar

    python new test framework is required. updated in this fork

  • RealKenshiro Avatar

    A truly excellent Kata! Thanks @PollyRibeiro

  • user9644768 Avatar

    Ruby 3.0 should be enabled, see this to learn how to do it

    Please organize the structure of test fixture as following (although it has been mentioned in the attached link, I'm repeated here again)

    describe "<This message should describe the categories of test groups inside this block>" do
      it "<A short message describing this test group>" do
        expect(...).to eq(...) #Assertions
        #Or Test.assert_equals(user_response, reference_response)
      end
    end
    
  • deladan Avatar

    Isn't there an issue with provided example? Why should a 1/2 tsp of salt become a 1/2 tbsp of salt?

  • PollyRibeiro Avatar

    Thanks everyone that helped me to improve and translated this kata. It was my first kata, so I was a few confused and made some mistakes. I will be more careful with the random tests next time :)

  • jenkizenki Avatar

    I don't think this is a level 6, feels more like a level 5 to me

  • gkroll Avatar

    Fixed vs. random tests are inconsistent in terms of the required formatting: (some of) the of fixed tests expect integer values for the converted weights, whereas all the random tests expect a rounded floating point number ending with '.0'.

  • anter69 Avatar

    Ruby translation kumited -- please check and approve!

  • Blind4Basics Avatar

    ptyhon:

    the test suite is lacking it's import math

  • Voile Avatar

    Random tests should probably have variable amount of measures.

  • FArekkusu Avatar

    Python translation. You could add it if you want.

  • smile67 Avatar

    This comment has been hidden.