/
NikolayIvkin
/
TheAlgorithms
Обзор
Документация
Войти
/
NikolayIvkin
/
TheAlgorithms
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/test/java/com/thealgorithms/conversions/DecimalToHexadecimalTest.java
14 строк
505 B
Alex Klymenko
refactor: `DecimalToHexadecimal` (#5337)
17 авг 2024, 21:58
Не верифицирован
17 авг 2024, 21:58
25b6aeb
Код
Авторство
О чём код?
package com.thealgorithms.conversions; import static org.junit.jupiter.api.Assertions.assertEquals; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.CsvSource; public class DecimalToHexadecimalTest { @ParameterizedTest @CsvSource({"0, 0", "1, 1", "10, a", "15, f", "16, 10", "255, ff", "190, be", "1800, 708"}) void testDecToHex(int decimal, String expectedHex) { assertEquals(expectedHex, DecimalToHexadecimal.decToHex(decimal)); } }