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