示例#1
0
def test_standard_with_decimal():
	assert money_conversion("$3.5 million") == 3500000
示例#2
0
def test_unkown():
	assert money_conversion("70 crore") is None
示例#3
0
def test_standard_double_digit():
	assert money_conversion("$99 million") == 99000000
示例#4
0
def test_other_currency():
	assert money_conversion("60 million Norwegian Kroner (around $8.7 million in 1989)") == 8700000
示例#5
0
def test_list():
	assert money_conversion(['$410.6 million (gross)', '$378.5 million (net)']) == 410600000
示例#6
0
def test_number_with_commas_and_decimals():
	assert money_conversion("$10,000,000.50") == 10000000.5
示例#7
0
def test_number_with_commas_middle():
	assert money_conversion("estimated $5,000,000 (USD)") == 5000000
示例#8
0
def test_standard():
	assert money_conversion("$3 million") == 3000000
示例#9
0
def test_number_with_commas():
	assert money_conversion("$127,850,000") == 127850000
示例#10
0
def test_range_with_to():
	assert money_conversion("$3.5 to 4 million") == 3500000
示例#11
0
def test_number():
	assert money_conversion("$950000") == 950000
示例#12
0
def test_range():
	assert money_conversion("$3.5-4 million") == 3500000
示例#13
0
def test_standard_thousand():
	assert money_conversion("$900.9 thousand") == 900900
示例#14
0
def test_standard_billion():
	assert money_conversion("$1.25 billion") == 1250000000
示例#15
0
def test_standard_multiple_decimals():
	assert money_conversion("$1.234 million") == 1234000
示例#16
0
def test_hash():
    assert money_conversion('$180–263 million') == 180000000