Skip to content

Commit 49ba804

Browse files
committed
Java, C#: Fix unit tests
1 parent 4f11b39 commit 49ba804

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

csharp/EPAM.Deltix.DFP.Test/Decimal64Test.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,8 +1272,8 @@ public void Issue91ToFloatString()
12721272
[Test]
12731273
public void TestShortenMantissaBigDelta()
12741274
{
1275-
Assert.AreEqual(Decimal64.Parse("9000000000000000"),
1276-
Decimal64.Parse("9999000000000000").ShortenMantissa(DotNetImpl.MaxCoefficient / 2, 2));
1275+
Assert.AreEqual(Decimal64.Parse("10000000000000000"),
1276+
Decimal64.Parse("9999000000000000").ShortenMantissa(DotNetImpl.MaxCoefficient / 10, 2));
12771277
}
12781278

12791279
[Test]

java/dfp/src/test/java/com/epam/deltix/dfp/FromDoubleTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ public void testShortenMantissaDenormalized() {
251251

252252
@Test
253253
public void testShortenMantissaBigDelta() {
254-
Assert.assertEquals(Decimal64.parse("9000000000000000"),
255-
Decimal64.parse("9999000000000000").shortenMantissa(JavaImpl.MAX_COEFFICIENT / 2, 2));
254+
Assert.assertEquals(Decimal64.parse("10000000000000000"),
255+
Decimal64.parse("9999000000000000").shortenMantissa(JavaImpl.MAX_COEFFICIENT / 10, 2));
256256
}
257257

258258
@Test

0 commit comments

Comments
 (0)