File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
206219for floating point numbers of type ` f32 ` and ` f64 ` .
You can’t perform that action at this time.
0 commit comments