Skip to content

Commit

Permalink
Fix ProtoValueTest
Browse files Browse the repository at this point in the history
  • Loading branch information
gartens committed Apr 24, 2024
1 parent 304c540 commit 23463d9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,9 @@ public void polyBigDecimalSerializationTest() {
BigDecimal expectedValue = new BigDecimal( 1691879380700L );
PolyBigDecimal expected = new PolyBigDecimal( expectedValue );
ProtoValue protoValue = PolyValueSerializer.serialize( expected );
MathContext context = new MathContext( protoValue.getBigDecimal().getPrecision() );
int scale = protoValue.getBigDecimal().getScale();
BigInteger value = new BigInteger( protoValue.getBigDecimal().getUnscaledValue().toByteArray() );
BigDecimal result = new BigDecimal( value, scale, context );
BigDecimal result = new BigDecimal( value, scale );
assertEquals( expectedValue, result );
}

Expand Down

0 comments on commit 23463d9

Please sign in to comment.