@@ -23,10 +23,11 @@ class MidpointCircleTest {
2323 */
2424 @ ParameterizedTest
2525 @ CsvSource ({
26- "0, 0, 3" , // Circle centered at (0, 0) with radius 3
27- "10, 10, 2" // Circle centered at (10, 10) with radius 2
26+ "0, 0, 3" , // Circle centered at (0, 0) with radius 3
27+ "10, 10, 2" // Circle centered at (10, 10) with radius 2
2828 })
29- void testGenerateCirclePoints (int centerX , int centerY , int radius ) {
29+ void
30+ testGenerateCirclePoints (int centerX , int centerY , int radius ) {
3031 List <int []> points = MidpointCircle .generateCirclePoints (centerX , centerY , radius );
3132
3233 // Ensure that all points satisfy the circle equation (x - centerX)^2 + (y - centerY)^2 = radius^2
@@ -38,8 +39,7 @@ void testGenerateCirclePoints(int centerX, int centerY, int radius) {
3839 int dy = y - centerY ;
3940 int distanceSquared = dx * dx + dy * dy ;
4041
41- assertTrue (Math .abs (distanceSquared - radius * radius ) <= 1 ,
42- "Point (" + x + ", " + y + ") does not satisfy the circle equation." );
42+ assertTrue (Math .abs (distanceSquared - radius * radius ) <= 1 , "Point (" + x + ", " + y + ") does not satisfy the circle equation." );
4343 }
4444 }
4545
@@ -51,7 +51,6 @@ void testZeroRadiusCircle() {
5151 List <int []> points = MidpointCircle .generateCirclePoints (0 , 0 , 0 );
5252
5353 // A zero-radius circle should only have one point: (0, 0)
54- assertTrue (points .size () == 1 && points .get (0 )[0 ] == 0 && points .get (0 )[1 ] == 0 ,
55- "Zero-radius circle did not generate the correct point." );
54+ assertTrue (points .size () == 1 && points .get (0 )[0 ] == 0 && points .get (0 )[1 ] == 0 , "Zero-radius circle did not generate the correct point." );
5655 }
5756}
0 commit comments