7 kyu

RaNDoM CAsE

1,127 of 2,272treffynnon
Description
Loading description...
Fundamentals
  • Please sign in or sign up to leave a comment.
  • ejini战神 Avatar
    • Node 18. should be enabled

    • Test.expect should be aborted

    • Assertions that do not test anything should be removed, like this one:

      Test.expect("randomCase", "Random case function expected");

  • ejini战神 Avatar
    • Description should be language-agnostic

    • Write a function that will randomly upper and lower characters in a string

      should be

      Write a function that will randomly convert characters in a string to their lowercased and uppercased form

  • saudiGuy Avatar

    python new test framework is required. updated in this fork

  • user9644768 Avatar

    Ruby 3.0 should be enabled.

  • Insti Avatar

    I updated the Ruby tests:

    • Test to make sure the original string is not mutated.
    • Reworded test descriptions so what is being tested is listed before the long variable length strings.
    • Don't double test the original string.
    • Validate 9/10 random comparisons rather than 8/9
    • Give a useful error message if the original string is mutated.
    • Give a useful error message if there are too many identical randomizations.
    • Only do 10 extra random tests rather than 40
  • paf_thinder Avatar

    This comment has been hidden.

  • user6274941 Avatar

    This comment has been hidden.

  • GiacomoSorbi Avatar

    c++ translation pending as well as the Crystal one :)

  • GiacomoSorbi Avatar

    There are no tests to assess if the string is actually random; you can just lower case characters each x < 50% times and upper the rest to pass test in Python (I think JS is not too far).

  • Javatlacati Avatar

    Coffescript translation Kumited! please Accept :D

  • limeyb7 Avatar

    Hello,

    Whatever I seem to do I get this error message:

    "TypeError: Object o has no method 'toLowerCase'"

    Even when I don't use the 'toLowerCase' method.

    Can anyone help?

  • Mulatham Avatar

    This comment has been hidden.