/
NikolayIvkin
/
TheAlgorithms
Обзор
Документация
Войти
/
NikolayIvkin
/
TheAlgorithms
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/test/java/com/thealgorithms/bitmanipulation/IndexOfRightMostSetBitTest.java
20 строк
592 B
Piotr Idzik
style: enable `AvoidStarImport` in checkstyle (#5141)
05 май 2024, 21:48
Не верифицирован
05 май 2024, 21:48
414835d
Код
Авторство
О чём код?
package com.thealgorithms.bitmanipulation; import static org.junit.jupiter.api.Assertions.assertEquals; import org.junit.jupiter.api.Test; /** * Test case for Index Of Right Most SetBit * @author Bama Charan Chhandogi (https://github.com/BamaCharanChhandogi) */ class IndexOfRightMostSetBitTest { @Test void testIndexOfRightMostSetBit() { assertEquals(3, IndexOfRightMostSetBit.indexOfRightMostSetBit(40)); assertEquals(-1, IndexOfRightMostSetBit.indexOfRightMostSetBit(0)); assertEquals(3, IndexOfRightMostSetBit.indexOfRightMostSetBit(-40)); } }