Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Korko
SecretSanta.fr
Commits
e8b2d11c
Commit
e8b2d11c
authored
Jan 03, 2017
by
Korko
Committed by
StyleCI Bot
Jan 03, 2017
Browse files
Apply fixes from StyleCI
parent
7320b8f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/SolverTest.php
View file @
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
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment