-
Notifications
You must be signed in to change notification settings - Fork 821
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: move BigDecimal.TEN.pow(131072) to a separate test to avoid tes…
…t with too long name
- Loading branch information
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
pgjdbc/src/test/java/org/postgresql/util/BigDecimalByteConverter2Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright (c) 2023, PostgreSQL Global Development Group | ||
* See the LICENSE file in the project root for more information. | ||
*/ | ||
|
||
package org.postgresql.util; | ||
|
||
import org.junit.Test; | ||
|
||
import java.math.BigDecimal; | ||
import java.math.BigInteger; | ||
|
||
/** | ||
* This test is moved from {@link BigDecimalByteConverterTest} to prevent test with very long name. | ||
*/ | ||
public class BigDecimalByteConverter2Test { | ||
@Test | ||
public void testBigDecimal10_pow_131072_minus_1() { | ||
BigDecimalByteConverterTest.testBinary( | ||
new BigDecimal(BigInteger.TEN.pow(131072).subtract(BigInteger.ONE)) | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters