Skip to content

Commit

Permalink
commit con error de test
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Angel Alvarez committed Jan 3, 2025
1 parent 192daba commit ae5248e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Factorial.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public function calculate($input) {
throw new InvalidArgumentException('No es posible hacer un factorial de números negativos');
}
if($input <= 1) {
return 1;
return 6;
}
return $input * $this->calculate($input - 1);
}
Expand Down

0 comments on commit ae5248e

Please sign in to comment.