Repository navigation
Update PrimeFactorsCalculatorTest - #1308
Conversation
| public void test() { | ||
| assertEquals(expectedOutput, new PrimeFactorsCalculator().calculatePrimeFactorsOf(input)); | ||
| public void testGeneral() { | ||
| assertEquals(Arrays.asList(3L, 3L), primeFactorsCalculator.calculatePrimeFactorsOf(9L)); |
There was a problem hiding this comment.
It might make more sense to separate each of these assertEquals statements into individual tests. What do we think @exercism/java? 🙂
FridaTveit
left a comment
There was a problem hiding this comment.
This looks great @LuLechuan! I only have one suggestion for the test names apart from that it looks ready to merge! 🙂
|
|
||
| @Ignore("Remove to run test") | ||
| @Test | ||
| public void testSingleTonListResult() { |
There was a problem hiding this comment.
The canonical data has some good suggestions for tests names (e.g. testPrimeNumber for this one) which is might be good to use? We don't have to use the same test names as the canonical data but in this case they explain why these numbers have been chosen which might be useful 🙂
There was a problem hiding this comment.
Oh I didn't notice that! Thanks for the advice!
FridaTveit
left a comment
There was a problem hiding this comment.
This looks great! Thanks for doing this @LuLechuan! 🙂
* Update PrimeFactorsCalculatorTest * Separate tests individually * update tests
Fixes #1293
For exercise: prime-factors
Reviewer Resources:
Track Policies