def test_percent(): assert d.percent(m("4100" + "00")) == 0.0 * Unit.percent assert d.percent(m("4100" + "FF")) == 100.0 * Unit.percent
def test_percent(): assert d.percent("00") == (0.0, Unit.PERCENT) assert d.percent("FF") == (100.0, Unit.PERCENT)
def test_percent(): assert d.percent(m("00")) == (0.0, Unit.PERCENT) assert d.percent(m("FF")) == (100.0, Unit.PERCENT)