Add float inputs to see that from_wei(to_wei(value, 'ether'), 'ether') == decimal.Decimal(str(value)) for float inputs.
When the decimal of the value is less than 0 Wei, to_wei converts it to 0, and the test case gets AssertionError because of 0 != 0.0...01.
What was wrong?
Issue #102
How was it fixed?
Add
float
inputs to see thatfrom_wei(to_wei(value, 'ether'), 'ether') == decimal.Decimal(str(value))
forfloat
inputs. When the decimal of the value is less than 0 Wei,to_wei
converts it to 0, and the test case getsAssertionError
because of 0 != 0.0...01.To-Do
[x] Clean up commit history
[x] Add entry to the release notes
Cute Animal Picture