Ad
  • Custom User Avatar

    Same issue!

    12 seconds... Even if go for the most naive solution it should work.

    How come, that it's not?

  • Custom User Avatar

    Hi, there!
    having this error:
    tests/Fixture.cs(23,32): error CS7036: There is no argument given that corresponds to the required formal parameter 'sudoku' of 'Sudoku.IsValid(int[][])'

    in C# the initial code looks like this:

    class Sudoku
    {
    public Sudoku(int[][] sudokuData)
    {
    //Constructor here
    }

    public bool IsValid()
    {
    throw new NotImplementedException();
    }
    }

    I had implemented IsValid() function but what I need to do in constructor????
    pass a sudokuData to IsValid? any ideas?

  • Custom User Avatar

    It says there you only passed 4 tests, there are 25 tests. Under a certain condition, your function is not returning (the same as returning None), that's the error about.

  • Custom User Avatar

    If it passed all tests - why their is an error? If my code do not return nothing how it passes tests?

  • Custom User Avatar

    Not an issue, it means that you didn't return anything.

  • Custom User Avatar

    STDERR
    Traceback (most recent call last):
    File "main.py", line 14, in
    Test.describe("First 5 numbers", test_range(5) )
    File "main.py", line 9, in test_range
    test.assert_equals( len(result), n, 'Incorrect length for n = {}'.format(n))
    TypeError: object of type 'NoneType' has no len()

    What does that mean?

    Time: 959ms Passed: 4 Failed: 0 Exit Code: 1

  • Custom User Avatar

    Oh, now I see.. Thank You

  • Custom User Avatar

    Excuse me, but how they see what is the test-case, and what is the expected answer?

    I see only "Test passed" or "Failed" and if failed I see 'NO' should equal 'YES'.... Thank You