Commit 261ca700 authored by Jérémy Lemesle's avatar Jérémy Lemesle Committed by GitHub
Browse files

Merge pull request #25 from Korko/analysis-qJgbkV

Apply fixes from StyleCI
parents 7320b8f8 e8b2d11c
......@@ -58,20 +58,20 @@ class SolverTest extends TestCase
public function testOne()
{
$this->assertTrue((function() {
$this->assertTrue((function () {
$solutions = [
[0 => 1, 1 => 2, 2 => 0],
[0 => 2, 1 => 0, 2 => 1]
[0 => 2, 1 => 0, 2 => 1],
];
$valid = [];
for($i = 0; $i < 100; $i++) {
for ($i = 0; $i < 100; $i++) {
$solution = Solver::one(['A', 'B', 'C']);
$solution_position = array_search($solution, $solutions);
$valid[$solution_position] = TRUE;
$valid[$solution_position] = true;
if(count($valid) === count($solutions)) {
if (count($valid) === count($solutions)) {
return true;
}
}
......
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