Ad
  • Custom User Avatar

    Kotlin Translation Kumited! Looking forward to your approval.

  • Custom User Avatar

    It seems like the swift translation may be broken. I get SIGILL for anything I enter.

  • Custom User Avatar

    It seems like the test/setup scripts are broken.. I'm seeing these errors (unrelated to my code):

    /workspace/setup.swift:6:13: error: use of unresolved identifier 'XCTAssertEqual'
                XCTAssertEqual(someInt, arr2[index] as! Int)
                ^~~~~~~~~~~~~~
    /workspace/setup.swift:8:13: error: use of unresolved identifier 'XCTAssertEqual'
                XCTAssertEqual(someIntArray, arr2[index] as! [Int])
                ^~~~~~~~~~~~~~
    /workspace/setup.swift:10:13: error: use of unresolved identifier 'XCTAssertEqual'
                XCTAssertEqual(someBool, arr2[index] as! Bool)
                ^~~~~~~~~~~~~~
    /workspace/setup.swift:12:13: error: use of unresolved identifier 'XCTAssertEqual'
                XCTAssertEqual(someDouble, arr2[index] as! Double)
                ^~~~~~~~~~~~~~
    /workspace/setup.swift:14:13: error: use of unresolved identifier 'XCTAssertEqual'
                XCTAssertEqual(someString, arr2[index] as! String)
                ^~~~~~~~~~~~~~
    /workspace/setup.swift:16:13: error: use of unresolved identifier 'XCTAssertTrue'
                XCTAssertTrue(val == nil && arr2[index] == nil)
                ^~~~~~~~~~~~~
    /workspace/setup.swift:18:13: error: use of unresolved identifier 'XCTFail'
                XCTFail("This data type is not handled in assertArraysOfAnyEqual")
                ^~~~~~~
    /runner/frameworks/swift/xctest/_XCTMain.swift:5:13: note: did you mean '_XCTMain'?
    public func _XCTMain(_ testCases: [XCTestCaseEntry]) -> Never {
                ^
    
  • Custom User Avatar

    Definitely needs some more test cases (edge cases?)

  • Custom User Avatar

    It seems like the map function is never called. Are you sure the setMap function on Master works correctly? Also, it would be nice to know the implementaiton of Master, unless that's too much of a spoiler?

  • Custom User Avatar

    This was an absolute blast to implement, thank you for being so thorough with the test cases and implementation spec. The only issues I had with it were because I focused on the original Whitespace spec here: http://compsoc.dur.ac.uk/whitespace/tutorial.html rather than the minor tweaks you made to the spec. For example: the additional stack manipulation commands, as well as the fact that [space][space][space][lf] can be zero - only a sign and no digits. Also the original spec defines the opposite ordering of the left and right-hand sides of the arithmetic operands. That'll teach me to not stray from the kata description :)

  • Custom User Avatar

    Lack of test cases and clear definition of the problem..