Skip to content

Commit 6d14803

Browse files
committed
doc: list decimal number specific assertions in README
1 parent cf8b6e7 commit 6d14803

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,19 @@ for floating point numbers of type `f32` and `f64`:
201201
| is_not_a_number | verify that the subject is not a number |
202202
| is_a_number | verify that the subject is a number |
203203

204+
### Decimal number
205+
206+
for decimal numbers of types
207+
208+
* `bigdecimal:BigDecimal` and `bigdecimal:BigDecimalRef` (requires crate feature `bigdecimal`)
209+
* `rust_decimal::Decimal` (requires crate feature `rust-decimal`)
210+
211+
| assertion | description |
212+
|------------------|----------------------------------------------------|
213+
| has_scale_of | verify that the subject has the expected scale |
214+
| has_precision_of | verify that the subject has the expected precision |
215+
| is_integer | verify that the subject has zero fractional digits |
216+
204217
### Float comparison
205218

206219
for floating point numbers of type `f32` and `f64`.

0 commit comments

Comments
 (0)