Skip to content

Commit 2e5b32c

Browse files
negative characteristic mantissa check
1 parent 75587bb commit 2e5b32c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/src/lib/implementation/LibDecimalFloatImplementation.characteristicMantissa.t.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ contract LibDecimalFloatImplementationCharacteristicMantissaTest is Test {
2323
checkCharacteristicMantissa(0, 0, 0, 0);
2424
checkCharacteristicMantissa(0, 1, 0, 0);
2525

26-
checkCharacteristicMantissa(54304950862250382, -16, 5e16, 4304950862250382);
26+
checkCharacteristicMantissa(5.4304950862250382e16, -16, 5e16, 4304950862250382);
27+
checkCharacteristicMantissa(-5.4304950862250382e16, -16, -5e16, -0.4304950862250382e16);
2728
}
2829
}

0 commit comments

Comments
 (0)