mamrhein / fpdec.rs

Fast implementation of Decimal fixed-point arithmetics
BSD 3-Clause "New" or "Revised" License
17 stars 4 forks source link

Fix/too many fractional digits #3

Closed Roms1383 closed 1 year ago

Roms1383 commented 1 year ago

Fix a failed test in traits.rs related to MAX_N_FRAC_DIGITS.

mamrhein commented 1 year ago

Ahh! I forgot to add --optional-deps when running cargo hack test --feature-powerset. :-(

mamrhein commented 1 year ago

The failing test is not really related to MAX_N_FRAC_DIGITS, so no need to use it here. The panic (compile time error) is already documented with macro Dec!.

mamrhein commented 1 year ago

Fixed with 0.6.2.