style: format code (#4212)

close #4204
This commit is contained in:
acbin
2023-06-09 18:52:05 +08:00
committed by GitHub
parent ad03086f54
commit 00282efd8b
521 changed files with 5233 additions and 7309 deletions

View File

@ -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

View File

@ -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"));

View File

@ -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"));
}

View File

@ -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