Verified Commit 425f4bb7 authored by asahiocean's avatar asahiocean 🚀
Browse files

Update Contents.swift

parent 4c1f0f8f
......@@ -43,19 +43,19 @@ import XCTest
class Tests: XCTestCase {
private let s = Solution()
func testExample1() {
XCTAssertEqual(s.avoidFlood([1,2,3,4]), [-1,-1,-1,-1]) // success
XCTAssertEqual(s.avoidFlood([1,2,3,4]), [-1,-1,-1,-1])
}
func testExample2() {
XCTAssertEqual(s.avoidFlood([1,2,0,0,2,1]), [-1,-1,2,1,-1,-1]) // success
XCTAssertEqual(s.avoidFlood([1,2,0,0,2,1]), [-1,-1,2,1,-1,-1])
}
func testExample3() {
XCTAssertEqual(s.avoidFlood([1,2,0,1,2]), []) // success
XCTAssertEqual(s.avoidFlood([1,2,0,1,2]), [])
}
func testExample4() {
XCTAssertEqual(s.avoidFlood([69,0,0,0,69]), [-1,69,1,1,-1]) // success
XCTAssertEqual(s.avoidFlood([69,0,0,0,69]), [-1,69,1,1,-1])
}
func testExample5() {
XCTAssertEqual(s.avoidFlood([10,20,20]), []) // success
XCTAssertEqual(s.avoidFlood([10,20,20]), [])
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment