-
Notifications
You must be signed in to change notification settings - Fork 0
Unsigned32
Giuseppe Cannella edited this page Feb 19, 2020
·
2 revisions
Type name | example |
---|---|
Unsigned32 | 133 |
import com.github.gekomad.regexcollection.Unsigned32
import com.github.gekomad.regexcollection.Validate.validate
assert(validate[Unsigned32]("99.99") == None)
assert(validate[Unsigned32]("0") == Some("0"))
assert(validate[Unsigned32]("99") == Some("99"))
assert(validate[Unsigned32]("4294967295") == Some("4294967295"))
assert(validate[Unsigned32]("4294967296") == None)
assert(validate[Unsigned32](".99") == None)
assert(validate[Unsigned32]("-1") == None)