Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Fixed although the bug was voluntary so people know that Swift needs arguments labels...
You can work around the problem by adding empty arugemnt labels in your solution. Just change first line to:
func race(_ v1: Int, _ v2: Int, _ g: Int) -> [Int]? {
The function is not called correctly in Swift. I fixed the once for "Test" phase but they need to be fixed for the "Attempt" phase.
main.swift:14:23: error: missing argument labels 'v1:v2:g:' in call
XCTAssert(race(v1, v2, g)! == expected!, "should return (expected!)")
^
v1: v2: g:
main.swift:17:27: error: missing argument labels 'v1:v2:g:' in call
XCTAssertTrue(race(v1, v2, g) == nil, "Should return nil")
^
v1: v2: g:
I Finally got It!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! I feel like this shouldnt of been so hard but i think I was tired last night trying to do it. fresh mind made all the difference.