Properly implement tests.
All checks were successful
The build was successful.

This commit is contained in:
2019-07-01 20:07:06 +02:00
parent 376b9510a9
commit c94de60c29
4 changed files with 11 additions and 9 deletions

View File

@@ -2,7 +2,7 @@ class Program {
private string cycle(char $a, char $b, int $i = 0) {
static bool[] $switches;
if($switches[$i])
if(array_key_exists($i, $switches))
$switches[$i] = !$switches[$i];
else
!($switches[$i] = true);