Skip to content

Commit

Permalink
long string and long double value
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenliang123 committed Nov 24, 2023
1 parent 991e359 commit 6ea7b01
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,9 @@ class MathUtilsSuite extends AnyFunSuite {
assert(isNonNegativeNumber(" 1.23 "))
assert(!isNonNegativeNumber(" 1. 23 "))
assert(!isNonNegativeNumber(" 1. 23 abc "))
assert(isNonNegativeNumber(1.123456789012345678901234567890123456789012345678901234567890d))
assert(!isNonNegativeNumber(-1.123456789012345678901234567890123456789012345678901234567890d))
assert(isNonNegativeNumber("1.123456789012345678901234567890123456789012345678901234567890"))
assert(!isNonNegativeNumber("-1.123456789012345678901234567890123456789012345678901234567890"))
}
}

0 comments on commit 6ea7b01

Please sign in to comment.