Skip to content

Commit

Permalink
Improve tests for BigIntegers, re #13
Browse files Browse the repository at this point in the history
  • Loading branch information
safris committed Jun 9, 2020
1 parent 4d3656d commit f2a36d6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/test/java/org/libj/math/BigIntegersTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,15 @@ public void testIntern() {
assertSame(b, BigIntegers.intern(new BigInteger("122414")));
}
}

@Test
public void testOf() {
for (int i = 0; i < 100; ++i) {
new Thread(() -> {
for (int j = 0; j < 1000; ++j) {
BigIntegers.of(String.valueOf(j));
}
}).start();
}
}
}

0 comments on commit f2a36d6

Please sign in to comment.