Skip to content
Snippets Groups Projects
Commit 0dd52623 authored by keleher's avatar keleher
Browse files

auto

parent 541a5b0a
No related branches found
No related tags found
No related merge requests found
...@@ -152,7 +152,7 @@ clockwise. Your func may assume that the array is square. ...@@ -152,7 +152,7 @@ clockwise. Your func may assume that the array is square.
Same test using a generic func you must write called `rotate2D`, and which will work on Same test using a generic func you must write called `rotate2D`, and which will work on
any type of array. any type of array.
``` ```
func testRotate1() { func testRotate2() {
var board = [[0,3,3,3],[1,2,3,3],[0,2,1,3],[3,3,6,6]] var board = [[0,3,3,3],[1,2,3,3],[0,2,1,3],[3,3,6,6]]
board = rotate2D(input: board) board = rotate2D(input: board)
XCTAssertTrue(board == [[3,0,1,0],[3,2,2,3],[6,1,3,3],[6,3,3,3]]) XCTAssertTrue(board == [[3,0,1,0],[3,2,2,3],[6,1,3,3],[6,3,3,3]])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment