/
NikolayIvkin
/
TheAlgorithms
Обзор
Документация
Войти
/
NikolayIvkin
/
TheAlgorithms
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/test/java/com/thealgorithms/maths/PythagoreanTripleTest.java
22 строки
876 B
Godwill Christopher
style: enable `MethodName` in CheckStyle (#5182)
27 май 2024, 10:06
Не верифицирован
27 май 2024, 10:06
295e743
Код
Авторство
О чём код?
package com.thealgorithms.maths; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.Test; public class PythagoreanTripleTest { @Test public void testPythagoreanTriple() { assertTrue(PythagoreanTriple.isPythagTriple(3, 4, 5)); assertTrue(PythagoreanTriple.isPythagTriple(6, 8, 10)); assertTrue(PythagoreanTriple.isPythagTriple(9, 12, 15)); assertTrue(PythagoreanTriple.isPythagTriple(12, 16, 20)); assertTrue(PythagoreanTriple.isPythagTriple(15, 20, 25)); assertTrue(PythagoreanTriple.isPythagTriple(18, 24, 30)); assertFalse(PythagoreanTriple.isPythagTriple(5, 20, 30)); assertFalse(PythagoreanTriple.isPythagTriple(6, 8, 100)); assertFalse(PythagoreanTriple.isPythagTriple(-2, -2, 2)); } }