/
NikolayIvkin
/
TheAlgorithms
Обзор
Документация
Войти
/
NikolayIvkin
/
TheAlgorithms
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/test/java/com/thealgorithms/maths/SquareRootwithBabylonianMethodTest.java
27 строк
669 B
Godwill Christopher
style: enable `MethodName` in CheckStyle (#5182)
27 май 2024, 10:06
Не верифицирован
27 май 2024, 10:06
295e743
Код
Авторство
О чём код?
package com.thealgorithms.maths; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; public class SquareRootwithBabylonianMethodTest { @Test void testfor4() { Assertions.assertEquals(2, SquareRootWithBabylonianMethod.squareRoot(4)); } @Test void testfor1() { Assertions.assertEquals(1, SquareRootWithBabylonianMethod.squareRoot(1)); } @Test void testfor2() { Assertions.assertEquals(1.4142135381698608, SquareRootWithBabylonianMethod.squareRoot(2)); } @Test void testfor625() { Assertions.assertEquals(25, SquareRootWithBabylonianMethod.squareRoot(625)); } }