Repository navigation
Support BigDecimal in assert_in_delta and its family - #218
Conversation
49164cf to
5b65b6f
Compare
|
@kou Now we don't have the requirements of |
|
Could you execute |
5b65b6f to
50281a4
Compare
b2a6a95 to
36453d4
Compare
36453d4 to
f1b2ac3
Compare
|
By the way, why the CI workflow does not run? |
Because you're a first-time contributor in this repository. :-) |
f1b2ac3 to
b5960ca
Compare
b5960ca to
9ddbb1b
Compare
|
@kou Could you please review the additional changes? |
|
It looks good to me. Could you confirm a test failure with TruffleRuby: https://github.com/test-unit/test-unit/actions/runs/3155408344/jobs/5134120186#step:5:14 It seems that it's just a format difference. |
|
@kou It doesn't seem a format difference, but it seems the delta is converted to a Float in the message. I think a reasonable way to fix it is to disable test cases that depend on bigdecimal for JRuby and TruffleRuby. Or, it can be an alternative way to replace BigDecimal with a dummy number class that was newly created for tests. |
|
OK. Could you omit only |
`TestAssertInEpsilonBigDecimal#test_fail_with_float_like_object` fails only on TruffleRuby. The reason of the failure is maybe `delta` is converted to a Float accidentally on building the failure message.
|
@kou The test should have been omitted only on TruffleRuby by the last commit. |
|
Thanks! |
This accepts
BigDecimalas input without convertingFloatimplicitly forassert_in_deltaand its family.