From 1124d62b23669cf8cd31e48932feddecd11d7ed2 Mon Sep 17 00:00:00 2001 From: Alexis Drai Date: Tue, 31 Jan 2023 13:41:31 +0100 Subject: [PATCH] :lipstick: --- .../Tests/connect4_libTests/BoardTest.swift | 24 ++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/Connect4/connect4_lib/Tests/connect4_libTests/BoardTest.swift b/Connect4/connect4_lib/Tests/connect4_libTests/BoardTest.swift index 6609c0e..e2c5127 100644 --- a/Connect4/connect4_lib/Tests/connect4_libTests/BoardTest.swift +++ b/Connect4/connect4_lib/Tests/connect4_libTests/BoardTest.swift @@ -84,17 +84,29 @@ final class BoardTest: XCTestCase { } // p1, ok - expect(withGrid: [[nil, nil, nil], [nil, nil, nil], [nil, nil, nil]], playerId: 1, secretTargetRow: 2, targetCol: 0, shouldWork: true) + expect(withGrid: [[nil, nil, nil], + [nil, nil, nil], + [nil, nil, nil]], playerId: 1, secretTargetRow: 2, targetCol: 0, shouldWork: true) // p2, ok - expect(withGrid: [[nil, nil, nil], [nil, nil, nil], [nil, nil, nil]], playerId: 2, secretTargetRow: 2, targetCol: 0, shouldWork: true) + expect(withGrid: [[nil, nil, nil], + [nil, nil, nil], + [nil, nil, nil]], playerId: 2, secretTargetRow: 2, targetCol: 0, shouldWork: true) // out of bounds left, nok - expect(withGrid: [[nil, nil, nil], [nil, nil, nil], [nil, nil, nil]], playerId: 1, secretTargetRow: 2, targetCol: -1, shouldWork: false) + expect(withGrid: [[nil, nil, nil], + [nil, nil, nil], + [nil, nil, nil]], playerId: 1, secretTargetRow: 2, targetCol: -1, shouldWork: false) // out of bounds right, nok - expect(withGrid: [[nil, nil, nil], [nil, nil, nil], [nil, nil, nil]], playerId: 1, secretTargetRow: 2, targetCol: 3, shouldWork: false) + expect(withGrid: [[nil, nil, nil], + [nil, nil, nil], + [nil, nil, nil]], playerId: 1, secretTargetRow: 2, targetCol: 3, shouldWork: false) // grid full, nok - expect(withGrid: [[1, 2, 1], [1, 2, 1], [2, 1, 2]], playerId: 1, secretTargetRow: 0, targetCol: 1, shouldWork: false) + expect(withGrid: [[1, 2, 1], + [1, 2, 1], + [2, 1, 2]], playerId: 1, secretTargetRow: 0, targetCol: 1, shouldWork: false) // column full, nok - expect(withGrid: [[nil, nil, 2], [nil, nil, 1], [nil, nil, 2]], playerId: 1, secretTargetRow: 0, targetCol: 2, shouldWork: false) + expect(withGrid: [[nil, nil, 2], + [nil, nil, 1], + [nil, nil, 2]], playerId: 1, secretTargetRow: 0, targetCol: 2, shouldWork: false) } }