• Custom User Avatar

    Wouldn't it be better to throw an exception instead of returning that dodgy "not convertible" String?

  • Custom User Avatar


    funny one. ;)

    • needs fixed tests in the test cases part too
    • make your method private, in the test class
    • increase the number of random tests
    • main problem is: your random tests don't generate strings with numbers and moreover, do never generate invalid cases. You need to tweak it way more than that.