Ad
  • Custom User Avatar

    Totally, it's totally not happening at line 62 of fixture.kt. Nope. Not happening at all.

  • Custom User Avatar

    Kotlin

    The tests fail.

    The tests are passing an unchecked casted Array of String? to the function argument declared as Array of String. This causes an impossible solution. Change the function stub to take Array of String? then all the other tests fail as they are trying to pass in the wrong type. The issue isn't resolved because the tests are still wrong not only from an actual assertion standpoint but from an actual coding practice standpoint.

  • Custom User Avatar

    It also has bugs in Kotlin.

  • Custom User Avatar

    Kotlin

    The tests fail.

    The tests are passing an unchecked casted Array of String? to the function argument declared as Array of String. This causes an impossible solution. Change the function stub to take Array of String? then all the other tests fail as they are trying to pass in the wrong type. The issue isn't resolved because the tests are still wrong not only from an actual assertion standpoint but from an actual coding practice standpoint.

  • Custom User Avatar

    fixture.kt:62:17: warning: unchecked cast: Array<String?> to Array
    return a1 as Array

    This tells me there is something wrong with this.

  • Custom User Avatar

    It's particularly hard to figure out what's wrong with a test without seeing the input for the tests, regarding the Kotlin tests. I haven't tried it with another language but my solution seems sound but I'm failing 2 tests without any info to lead into what is wrong other than "expected but found" which doesn't help if I don't know the input.