style: format code (#4212)

close #4204
This commit is contained in:
acbin
2023-06-09 18:52:05 +08:00
committed by GitHub
parent ad03086f54
commit 00282efd8b
521 changed files with 5233 additions and 7309 deletions

View File

@@ -7,25 +7,16 @@ public class SquareRootWithNewtonRaphsonTestMethod {
@Test
void testfor1() {
Assertions.assertEquals(
1,
SquareRootWithNewtonRaphsonMethod.squareRoot(1)
);
Assertions.assertEquals(1, SquareRootWithNewtonRaphsonMethod.squareRoot(1));
}
@Test
void testfor2() {
Assertions.assertEquals(
1.414213562373095,
SquareRootWithNewtonRaphsonMethod.squareRoot(2)
);
Assertions.assertEquals(1.414213562373095, SquareRootWithNewtonRaphsonMethod.squareRoot(2));
}
@Test
void testfor625() {
Assertions.assertEquals(
25.0,
SquareRootWithNewtonRaphsonMethod.squareRoot(625)
);
Assertions.assertEquals(25.0, SquareRootWithNewtonRaphsonMethod.squareRoot(625));
}
}