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,33 +7,21 @@ public class SquareRootwithBabylonianMethodTest {
@Test
void testfor4() {
Assertions.assertEquals(
2,
SquareRootWithBabylonianMethod.square_Root(4)
);
Assertions.assertEquals(2, SquareRootWithBabylonianMethod.square_Root(4));
}
@Test
void testfor1() {
Assertions.assertEquals(
1,
SquareRootWithBabylonianMethod.square_Root(1)
);
Assertions.assertEquals(1, SquareRootWithBabylonianMethod.square_Root(1));
}
@Test
void testfor2() {
Assertions.assertEquals(
1.4142135381698608,
SquareRootWithBabylonianMethod.square_Root(2)
);
Assertions.assertEquals(1.4142135381698608, SquareRootWithBabylonianMethod.square_Root(2));
}
@Test
void testfor625() {
Assertions.assertEquals(
25,
SquareRootWithBabylonianMethod.square_Root(625)
);
Assertions.assertEquals(25, SquareRootWithBabylonianMethod.square_Root(625));
}
}