UNPKG
@juici/math
Version:
latest (0.1.0)
0.1.0
A mathematics utility library
Juici/math.js
@juici/math
/
src
/
__tests__
/
BigDecimal
/
isInt.test.ts
8 lines
(6 loc)
•
230 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
import
{
BigDecimal
}
from
"../../BigDecimal"
;
test
(
"isInt"
,
() =>
{
expect
(
new
BigDecimal
(
"50"
).
isInt
()).
toBe
(
true
);
expect
(
new
BigDecimal
(
"1.0"
).
isInt
()).
toBe
(
true
);
expect
(
new
BigDecimal
(
"1.1"
).
isInt
()).
toBe
(
false
); });