fixed failing test for ex. 024
This commit is contained in:
parent
720a8aaac4
commit
be8429f1e6
1 changed files with 2 additions and 2 deletions
|
|
@ -1,10 +1,10 @@
|
||||||
62c62,68
|
62c62,68
|
||||||
< return detectProblems(n) ???
|
< return detectProblems(n) ???
|
||||||
---
|
---
|
||||||
> return detectProblems(n) catch |err| {
|
> return detectProblems(n) catch |err| {
|
||||||
> if (err == MyNumberError.TooSmall) {
|
> if (err == MyNumberError.TooSmall) {
|
||||||
> return 10;
|
> return 10;
|
||||||
> }
|
> }
|
||||||
>
|
>
|
||||||
> return err;
|
> return err;
|
||||||
> };
|
> };
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue