7 kyu

Make every letter after X into caps.

Description
Loading description...
Strings
Fundamentals
  • Please sign in or sign up to leave a comment.
  • ejini战神 Avatar
    • Node 12 should be enabled (Refer this and this for more info)
  • suic Avatar

    The expected result for makeEveryLetterAfterXCaps('aaaa', 'a') (which is "aAaA" according to the reference solution) should be explicitly specified in the description and you should add such a fixed test.

    Regards,

    suic

  • ooflorent Avatar

    I think there is an issue with the tests:

    Expected: 'MMVm8 TRgyy5PS7sQRhxLGF1rgoS oDERo1 6Kvh8uur1NFw8 hsRNzWg XCmtMOOUGn BFb4nZxt7gRgNEjq2Hi f11atHh EeW51xFYdjZwuFRr bekhsr fcR6M lD h7ZmGze lvv7rTwLTl43KiKvcJBkC4UJ TsD8ZicApcQnF7KZxWzm47 dba2K 9X9HMEaLgNBU', instead got: 'MMvm8 TRgyy5PS7sQRhxLGF1rgoS oDERo1 6Kvh8uur1NFw8 hsRNzWg XCmtMOOUGn BFb4nZxt7gRgNEjq2Hi f11atHh EeW51xFYdjZwuFRr bekhsr fcR6M lD h7ZmGze lvv7rTwLTl43KiKvcJBkC4UJ TsD8ZicApcQnF7KZxWzm47 dba2K 9X9HMEaLgNBU'

    Expected: 'WNWSpBd2066Uo LQQy aYU5JQNRqkGOvR9 a Wdk 0KtcqFFYuYAKXv2 AyyIUJoD1fN6NaxoLdC 5Zq7Au VaUwias3ICPFC15SZeLrb1Hx W1SrW9nxX6a76ns czZmEHv4fXbsgum', instead got: 'WNWSpBd2066Uo LQQy aYU5JQNRqkGOvR9 a Wdk 0KtcqFFyuYAKXv2 AyyIUJoD1fN6NaxoLdC 5Zq7Au VaUwias3ICPFC15SZeLrb1Hx W1SrW9nxX6a76ns czZmEHv4fXbsgum'

    Expected: 'UGhmUpB lN7Cdc0 SXuyMfiBGS99SwbfujRl EIxVfk5AyZ3TI5 6N5WyrmRqQKqiQYj UlG9InMxnH0WBi gAS28YsOWRgb ChFGY1rWnZ', instead got: 'UGhmUpB lN7Cdc0 SXuyMfiBGS99swbfujRl EIxVfk5AyZ3TI5 6N5WyrmRqQKqiQYj UlG9InMxnH0WBi gAS28YsOWRgb ChFGY1rWnZ'

    • Voile Avatar

      All but a few solutions got invalidated when the random tests are added, so I'm pretty sure the random tests are okay ;-)

      (Also, they're impossible to debug without knowing what the original inputs are)

    • ooflorent Avatar

      Problem is that expected and the provided outputs are the same.

    • Voile Avatar

      They're not. Expected and actual results have letters in different capitalization if you look carefully.

    • ooflorent Avatar

      Damn, you're right. Thanks! 👍

      Issue marked resolved by ooflorent 8 years ago
  • JohanWiltink Avatar

    No random tests.

    Should the test for letter be case sensitive or not?