bbedward / graham_discord_bot

Discord Bot for the BANANO and NANO cryptocurrencies
MIT License
69 stars 55 forks source link

Fixed some decimals problems #59

Closed ArTombado closed 3 years ago

bbedward commented 3 years ago
======================================================================
FAIL: test_unit_conversions (test.util_test.TestConversions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/brandon/repos/graham_discord_bot/test/util_test.py", line 18, in test_unit_conversions
    self.assertEqual(BananoConversions.raw_to_banano(101000000000000000000000000000), 1.01)
AssertionError: Decimal('1.01') != 1.01

----------------------------------------------------------------------
Ran 12 tests in 0.023s

FAILED (failures=1)

Could you update your PR so it passes the tests. Can run the tests with python3 -m unittest test/*.py