@raulbc777, java
and there some troubles with text displaying, so there are something, what was not shown in first comment:
for example: on the row MinNbDiv.findMinNum(7) test returns "expected: 64 but was: 24"
I wrote method, what returns first int value, what have assigned count of divisions(Is this correct task?)
but your tests does something wrong - for example: on the row MinNbDiv.findMinNum(7) test returns "expected:<64> but was:<24>"
we can count it now: 24 divisions are: 1,2,3,4,6,8,12,24 - 8 (8>7 so it must be correct answer)
there is more issues like this, cause if I'll add this to my code: "if(num == 7)return 64;" to escape this error, i'll get some more from random test(for example "expected:<3600> but was:<2520>")
I think there are some errors in this kata tests;
@g964, thx, so I misunderstand the task. This is not a issue;
It's solved. Thanks bkaes for your observation.
Corrected! You can mark the issue as resolved.
@pickwik Could you post what the tests answer between 3 backticks? Moreover you can be sure at 99% that the tests are not wrong...
24 has 8 divisors and you are asked for 7 divisors, so your answer is wrong!-(
@raulbc777, java
and there some troubles with text displaying, so there are something, what was not shown in first comment:
for example: on the row MinNbDiv.findMinNum(7) test returns "expected: 64 but was: 24"
hi @pickwik, Which programming language please?
I wrote method, what returns first int value, what have assigned count of divisions(Is this correct task?)
but your tests does something wrong - for example: on the row MinNbDiv.findMinNum(7) test returns "expected:<64> but was:<24>"
we can count it now: 24 divisions are: 1,2,3,4,6,8,12,24 - 8 (8>7 so it must be correct answer)
there is more issues like this, cause if I'll add this to my code: "if(num == 7)return 64;" to escape this error, i'll get some more from random test(for example "expected:<3600> but was:<2520>")
I think there are some errors in this kata tests;