<reponame>Gsak3l/Movie-Dataset-Creation-and-Movie-Recommendation-Engine
import pytest
from money_conversion import convert_money


def test_standard():
    assert convert_money("$3 million") == 3000000


def test_standard_double_digit():
    assert convert_money("$99 million") == 99000000


def test_standard_with_decimal():
    assert convert_money("$3.5 million") == 3500000


def test_standard_multiple_decimals():
    assert convert_money("$1.234 million") == 1234000


def test_standard_billion():
    assert convert_money("$1.25 billion") == 1250000000


def test_standard_thousand():
    assert convert_money("$900.9 thousand") == 900900


def test_range():
    assert convert_money("$3.5-4 million") == 3500000


def test_range_with_to():
    assert convert_money("$3.5 to 4 million") == 3500000


def test_number():
    assert convert_money("$950000") == 950000


def test_number_with_commas():
    assert convert_money("$127,850,000") == 127850000


def test_number_with_commas_and_decimals():
    assert convert_money("$10,000,000.50") == 10000000.5


def test_number_with_commas_middle():
    assert convert_money("estimated $5,000,000 (USD)") == 5000000


def test_other_currency():
    assert convert_money("60 million Norwegian Kroner (around $8.7 million in 1989)") == 8700000


def test_list():
    assert convert_money(['$410.6 million (gross)', '$378.5 million (net)']) == 410600000


def test_unkown():
    assert convert_money("70 crore") is None

import pytest
from money_conversion import convert_money


def test_standard():
    assert convert_money("$3 million") == 3000000


def test_standard_double_digit():
    assert convert_money("$99 million") == 99000000


def test_standard_with_decimal():
    assert convert_money("$3.5 million") == 3500000


def test_standard_multiple_decimals():
    assert convert_money("$1.234 million") == 1234000


def test_standard_billion():
    assert convert_money("$1.25 billion") == 1250000000


def test_standard_thousand():
    assert convert_money("$900.9 thousand") == 900900


def test_range():
    assert convert_money("$3.5-4 million") == 3500000


def test_range_with_to():
    assert convert_money("$3.5 to 4 million") == 3500000


def test_number():
    assert convert_money("$950000") == 950000


def test_number_with_commas():
    assert convert_money("$127,850,000") == 127850000


def test_number_with_commas_and_decimals():
    assert convert_money("$10,000,000.50") == 10000000.5


def test_number_with_commas_middle():
    assert convert_money("estimated $5,000,000 (USD)") == 5000000


def test_other_currency():
    assert convert_money("60 million Norwegian Kroner (around $8.7 million in 1989)") == 8700000


def test_list():
    assert convert_money(['$410.6 million (gross)', '$378.5 million (net)']) == 410600000


def test_unkown():
    assert convert_money("70 crore") is None