Used the correct method in test

This commit is contained in:
Yadukrishnan 2024-04-25 15:12:24 +05:30
parent 6d61ab3761
commit fb121ee632
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ public class TwosComplementUnitTest {
"-12345, 16, 1100 1111 1100 0111"
})
public void givenNumberAndBits_getTwosComplementUsingShortcut(String number, int noOfBits, String expected) {
String twosComplement = TwosComplement.decimalToTwosComplementBinary(new BigInteger(number), noOfBits);
String twosComplement = TwosComplement.decimalToTwosComplementBinaryUsingShortCut(new BigInteger(number), noOfBits);
Assertions.assertEquals(expected, twosComplement);
}