mirror of
https://github.com/ratfactor/ziglings
synced 2024-09-21 11:21:45 +02:00
fixed failing test for ex. 024
This commit is contained in:
parent
720a8aaac4
commit
be8429f1e6
@ -1,10 +1,10 @@
|
||||
62c62,68
|
||||
< return detectProblems(n) ???
|
||||
< return detectProblems(n) ???
|
||||
---
|
||||
> return detectProblems(n) catch |err| {
|
||||
> if (err == MyNumberError.TooSmall) {
|
||||
> return 10;
|
||||
> }
|
||||
>
|
||||
>
|
||||
> return err;
|
||||
> };
|
||||
|
Loading…
Reference in New Issue
Block a user