Behavior-driven development: Difference between revisions

Content deleted Content added
Line 18:
PrimeCalculator calculator = new EratosthenesPrimesCalculator(100);
int result = calculator.nextPrime();
assertSameassertEquals("First prime after 100 should be 101 but is " + result, 101, result);
}
}
Line 30:
PrimeCalculator calculator = new EratosthenesPrimesCalculator(100);
int result = calculator.nextPrime();
assertSameassertEquals("First prime after 100 should be 101 but is " + result, 101, result);
}
 
Line 36:
PrimeCalculator calculator = new EratosthenesPrimesCalculator();
int result = calculator.nextPrime();
assertSameassertEquals("First prime should be 2 but is " + result, 2, result);
}
 
Line 42:
PrimeCalculator calculator = new EratosthenesPrimesCalculator(683);
int result = calculator.nextPrime();
assertSameassertEquals("First prime after 683 should be 691 but is " + result, 691, result);
}