mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-27 22:43:30 +08:00
@ -1,9 +1,9 @@
|
||||
package com.thealgorithms.conversions;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class BinaryToDecimalTest {
|
||||
|
||||
@Test
|
||||
|
@ -1,12 +1,13 @@
|
||||
package com.thealgorithms.conversions;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class HexaDecimalToBinaryTest {
|
||||
|
||||
@Test
|
||||
public void testHexaDecimalToBinary(){
|
||||
public void testHexaDecimalToBinary() {
|
||||
HexaDecimalToBinary hexaDecimalToBinary = new HexaDecimalToBinary();
|
||||
assertEquals("1111111111111111111111111111111", hexaDecimalToBinary.convert("7fffffff"));
|
||||
assertEquals("101010111100110111101111", hexaDecimalToBinary.convert("abcdef"));
|
||||
|
@ -1,13 +1,13 @@
|
||||
package com.thealgorithms.conversions;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class HexaDecimalToDecimalTest {
|
||||
|
||||
@Test
|
||||
public void testhexaDecimalToDecimal(){
|
||||
public void testhexaDecimalToDecimal() {
|
||||
assertEquals(161, HexaDecimalToDecimal.getHexaToDec("A1"));
|
||||
assertEquals(428, HexaDecimalToDecimal.getHexaToDec("1ac"));
|
||||
}
|
||||
|
@ -1,9 +1,9 @@
|
||||
package com.thealgorithms.conversions;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class RomanToIntegerTest {
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user