示例#1
0
def test_percent():
    assert d.percent(m("4100" + "00")) == 0.0 * Unit.percent
    assert d.percent(m("4100" + "FF")) == 100.0 * Unit.percent
示例#2
0
def test_percent():
	assert d.percent("00")  == (0.0,   Unit.PERCENT)
	assert d.percent("FF")  == (100.0, Unit.PERCENT)
示例#3
0
def test_percent():
    assert d.percent(m("00")) == (0.0, Unit.PERCENT)
    assert d.percent(m("FF")) == (100.0, Unit.PERCENT)
示例#4
0
def test_percent():
    assert d.percent(m("4100" + "00")) == 0.0 * Unit.percent
    assert d.percent(m("4100" + "FF")) == 100.0 * Unit.percent