Ad
  • Default User Avatar

    I think it depeds on the language. In C# it's fairly straightforward.

  • Default User Avatar

    Unfortunatly the .ToString (incorrect or otherwise) isn't even included in the C# version.

  • Default User Avatar

    So the description says "The code gives an error!
    Kata.A = 123.ToSTring();
    Fix it!"
    However, the code "Kata.A = 123.ToSTring();" is not present in the Kata. Instead one can simply add a property that returns the value to pass the kata.
    That seems contrary to what the kata wants the programmer to achieve.
    Maybe more test cases are required? And maybe the code originally supplied needs modification?
    I completed this in C#.

  • Default User Avatar

    Or, since the standard in C# is to capitalise method names:
    ConvertToMilliseconds :)

  • Default User Avatar

    I was wondering that myself, it seems like it isn't ranked properly if that's the case.
    The kata is based on a trick more so then actual programming, which seems to defeat the point of a code kata.

  • Default User Avatar

    Sorry, a little OCD thing of mine. In C# the standard is for methods to be capitalised. So greet() should instead be Greet().
    Thank you.