Skip to content

Conversation

@vicbl
Copy link

@vicbl vicbl commented Oct 18, 2020

No description provided.

@vicbl vicbl force-pushed the issue-68-fizzbuzz branch from 1ffa9e1 to 0a8f181 Compare October 18, 2020 12:11
Copy link
Owner

@fengyuanyang fengyuanyang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pleases remove , printFizzBuzz
it seems useless here


public void printFizzBuzz(int numberIteration) {
for (int i = 1; i <= numberIteration; i++) {
System.out.println(fizzBuzz(i));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

print method is useless in unit tests.

FizzBuzz fizzBuzz = new FizzBuzz();

@Test
public void printFizzBuzz_given15Iterations_fizzBuzzIsCorrectlyPrinted() {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can hard cord fizzbuzz from 1 to 15 and check the result with FizzBuzz, print is not going to make any sense here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants