mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
test: cover all Enum NumberFormat (#1257)
This commit is contained in:
parent
4e122a9452
commit
396d310d22
@ -46,16 +46,66 @@ mod tests {
|
||||
NumberFormat::USD => {
|
||||
assert_number(&type_option, "18443", "$18,443", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::CanadianDollar => {
|
||||
assert_number(&type_option, "18443", "CA$18,443", &field_type, &field_rev)
|
||||
}
|
||||
NumberFormat::EUR => assert_number(&type_option, "18443", "€18.443", &field_type, &field_rev),
|
||||
NumberFormat::Pound => assert_number(&type_option, "18443", "£18,443", &field_type, &field_rev),
|
||||
|
||||
NumberFormat::Yen => {
|
||||
assert_number(&type_option, "18443", "¥18,443", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::Ruble => assert_number(&type_option, "18443", "18.443RUB", &field_type, &field_rev),
|
||||
NumberFormat::Rupee => assert_number(&type_option, "18443", "₹18,443", &field_type, &field_rev),
|
||||
NumberFormat::Won => assert_number(&type_option, "18443", "₩18,443", &field_type, &field_rev),
|
||||
|
||||
NumberFormat::Yuan => {
|
||||
assert_number(&type_option, "18443", "CN¥18,443", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::EUR => {
|
||||
assert_number(&type_option, "18443", "€18.443", &field_type, &field_rev);
|
||||
NumberFormat::Real => {
|
||||
assert_number(&type_option, "18443", "R$18,443", &field_type, &field_rev);
|
||||
}
|
||||
_ => {}
|
||||
NumberFormat::Lira => assert_number(&type_option, "18443", "TRY18.443", &field_type, &field_rev),
|
||||
NumberFormat::Rupiah => assert_number(&type_option, "18443", "IDR18,443", &field_type, &field_rev),
|
||||
NumberFormat::Franc => assert_number(&type_option, "18443", "CHF18,443", &field_type, &field_rev),
|
||||
NumberFormat::HongKongDollar => {
|
||||
assert_number(&type_option, "18443", "HZ$18,443", &field_type, &field_rev)
|
||||
}
|
||||
NumberFormat::NewZealandDollar => {
|
||||
assert_number(&type_option, "18443", "NZ$18,443", &field_type, &field_rev)
|
||||
}
|
||||
NumberFormat::Krona => assert_number(&type_option, "18443", "18 443SEK", &field_type, &field_rev),
|
||||
NumberFormat::NorwegianKrone => {
|
||||
assert_number(&type_option, "18443", "18,443NOK", &field_type, &field_rev)
|
||||
}
|
||||
NumberFormat::MexicanPeso => assert_number(&type_option, "18443", "MX$18,443", &field_type, &field_rev),
|
||||
NumberFormat::Rand => assert_number(&type_option, "18443", "ZAR18,443", &field_type, &field_rev),
|
||||
NumberFormat::NewTaiwanDollar => {
|
||||
assert_number(&type_option, "18443", "NT$18,443", &field_type, &field_rev)
|
||||
}
|
||||
NumberFormat::DanishKrone => assert_number(&type_option, "18443", "18.443DKK", &field_type, &field_rev),
|
||||
NumberFormat::Baht => assert_number(&type_option, "18443", "THB18,443", &field_type, &field_rev),
|
||||
NumberFormat::Forint => assert_number(&type_option, "18443", "18 443HUF", &field_type, &field_rev),
|
||||
NumberFormat::Koruna => assert_number(&type_option, "18443", "18 443CZK", &field_type, &field_rev),
|
||||
NumberFormat::Shekel => assert_number(&type_option, "18443", "18 443Kč", &field_type, &field_rev),
|
||||
NumberFormat::ChileanPeso => assert_number(&type_option, "18443", "CLP18.443", &field_type, &field_rev),
|
||||
NumberFormat::PhilippinePeso => {
|
||||
assert_number(&type_option, "18443", "₱18,443", &field_type, &field_rev)
|
||||
}
|
||||
NumberFormat::Dirham => assert_number(&type_option, "18443", "18,443AED", &field_type, &field_rev),
|
||||
NumberFormat::ColombianPeso => {
|
||||
assert_number(&type_option, "18443", "COP18.443", &field_type, &field_rev)
|
||||
}
|
||||
NumberFormat::Riyal => assert_number(&type_option, "18443", "SAR18,443", &field_type, &field_rev),
|
||||
NumberFormat::Ringgit => assert_number(&type_option, "18443", "MYR18,443", &field_type, &field_rev),
|
||||
NumberFormat::Leu => assert_number(&type_option, "18443", "18.443RON", &field_type, &field_rev),
|
||||
NumberFormat::ArgentinePeso => {
|
||||
assert_number(&type_option, "18443", "ARS18.443", &field_type, &field_rev)
|
||||
}
|
||||
NumberFormat::UruguayanPeso => {
|
||||
assert_number(&type_option, "18443", "UYU18.443", &field_type, &field_rev)
|
||||
}
|
||||
NumberFormat::Percent => assert_number(&type_option, "18443", "18,443%", &field_type, &field_rev),
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -73,32 +123,219 @@ mod tests {
|
||||
NumberFormat::Num => {
|
||||
assert_number(&type_option, "18443", "18443", &field_type, &field_rev);
|
||||
assert_number(&type_option, "0.2", "0.2", &field_type, &field_rev);
|
||||
assert_number(&type_option, "", "", &field_type, &field_rev);
|
||||
assert_number(&type_option, "abc", "", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::USD => {
|
||||
assert_number(&type_option, "$18,44", "$1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "$0.2", "$0.2", &field_type, &field_rev);
|
||||
assert_number(&type_option, "", "", &field_type, &field_rev);
|
||||
assert_number(&type_option, "abc", "", &field_type, &field_rev);
|
||||
assert_number(&type_option, "$1844", "$1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "$1,844", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::Yen => {
|
||||
assert_number(&type_option, "¥18,44", "¥1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "¥1844", "¥1,844", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::Yuan => {
|
||||
assert_number(&type_option, "CN¥18,44", "CN¥1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "CN¥1844", "CN¥1,844", &field_type, &field_rev);
|
||||
NumberFormat::CanadianDollar => {
|
||||
assert_number(&type_option, "CA$18,44", "CA$1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "CA$0.2", "CA$0.2", &field_type, &field_rev);
|
||||
assert_number(&type_option, "CA$1844", "CA$1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "CA$1,844", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::EUR => {
|
||||
assert_number(&type_option, "€18.44", "€18,44", &field_type, &field_rev);
|
||||
assert_number(&type_option, "€0.5", "€0,5", &field_type, &field_rev);
|
||||
assert_number(&type_option, "€1844", "€1.844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "€1.844", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::Pound => {
|
||||
assert_number(&type_option, "£18,44", "£1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "£0.2", "£0.2", &field_type, &field_rev);
|
||||
assert_number(&type_option, "£1844", "£1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "£1,844", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::Yen => {
|
||||
assert_number(&type_option, "¥18,44", "¥1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "¥0.2", "¥0.2", &field_type, &field_rev);
|
||||
assert_number(&type_option, "¥1844", "¥1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "¥1,844", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::Ruble => {
|
||||
assert_number(&type_option, "RUB18.44", "18,44RUB", &field_type, &field_rev);
|
||||
assert_number(&type_option, "0.5", "0,5RUB", &field_type, &field_rev);
|
||||
assert_number(&type_option, "RUB1844", "1.844RUB", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "1.844RUB", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::Rupee => {
|
||||
assert_number(&type_option, "₹18,44", "₹1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "₹0.2", "₹0.2", &field_type, &field_rev);
|
||||
assert_number(&type_option, "₹1844", "₹1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "₹1,844", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::Won => {
|
||||
assert_number(&type_option, "₩18,44", "₩1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "₩0.3", "₩0", &field_type, &field_rev);
|
||||
assert_number(&type_option, "₩1844", "₩1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "₩1,844", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::Yuan => {
|
||||
assert_number(&type_option, "CN¥18,44", "CN¥1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "CN¥0.2", "CN¥0.2", &field_type, &field_rev);
|
||||
assert_number(&type_option, "CN¥1844", "CN¥1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "CN¥1,844", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::Real => {
|
||||
assert_number(&type_option, "R$18,44", "R$1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "R$0.2", "R$0.2", &field_type, &field_rev);
|
||||
assert_number(&type_option, "R$1844", "R$1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "R$1,844", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::Lira => {
|
||||
assert_number(&type_option, "TRY18.44", "TRY18,44", &field_type, &field_rev);
|
||||
assert_number(&type_option, "TRY0.5", "TRY0,5", &field_type, &field_rev);
|
||||
assert_number(&type_option, "TRY1844", "TRY1.844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "TRY1.844", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::Rupiah => {
|
||||
assert_number(&type_option, "IDR18,44", "IDR1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "IDR0.2", "IDR0.2", &field_type, &field_rev);
|
||||
assert_number(&type_option, "IDR1844", "IDR1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "IDR1,844", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::Franc => {
|
||||
assert_number(&type_option, "CHF18,44", "CHF1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "CHF0.2", "CHF0.2", &field_type, &field_rev);
|
||||
assert_number(&type_option, "CHF1844", "CHF1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "CHF1,844", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::HongKongDollar => {
|
||||
assert_number(&type_option, "HZ$18,44", "HZ$1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "HZ$0.2", "HZ$0.2", &field_type, &field_rev);
|
||||
assert_number(&type_option, "HZ$1844", "HZ$1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "HZ$1,844", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::NewZealandDollar => {
|
||||
assert_number(&type_option, "NZ$18,44", "NZ$1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "NZ$0.2", "NZ$0.2", &field_type, &field_rev);
|
||||
assert_number(&type_option, "NZ$1844", "NZ$1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "NZ$1,844", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::Krona => {
|
||||
assert_number(&type_option, "SEK18,44", "18,44SEK", &field_type, &field_rev);
|
||||
assert_number(&type_option, "SEK0.2", "0,2SEK", &field_type, &field_rev);
|
||||
assert_number(&type_option, "SEK1844", "1 844SEK", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "1 844SEK", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::NorwegianKrone => {
|
||||
assert_number(&type_option, "NOK18,44", "1,844NOK", &field_type, &field_rev);
|
||||
assert_number(&type_option, "NOK0.2", "0.2NOK", &field_type, &field_rev);
|
||||
assert_number(&type_option, "NOK1844", "1,844NOK", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "1,844NOK", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::MexicanPeso => {
|
||||
assert_number(&type_option, "MX$18,44", "MX$1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "MX$0.2", "MX$0.2", &field_type, &field_rev);
|
||||
assert_number(&type_option, "MX$1844", "MX$1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "MX$1,844", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::Rand => {
|
||||
assert_number(&type_option, "ZAR18,44", "ZAR1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "ZAR0.2", "ZAR0.2", &field_type, &field_rev);
|
||||
assert_number(&type_option, "ZAR1844", "ZAR1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "ZAR1,844", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::NewTaiwanDollar => {
|
||||
assert_number(&type_option, "NT$18,44", "NT$1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "NT$0.2", "NT$0.2", &field_type, &field_rev);
|
||||
assert_number(&type_option, "NT$1844", "NT$1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "NT$1,844", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::DanishKrone => {
|
||||
assert_number(&type_option, "DKK18.44", "18,44DKK", &field_type, &field_rev);
|
||||
assert_number(&type_option, "DKK0.5", "0,5DKK", &field_type, &field_rev);
|
||||
assert_number(&type_option, "DKK1844", "1.844DKK", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "1.844DKK", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::Baht => {
|
||||
assert_number(&type_option, "THB18,44", "THB1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "THB0.2", "THB0.2", &field_type, &field_rev);
|
||||
assert_number(&type_option, "THB1844", "THB1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "THB1,844", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::Forint => {
|
||||
assert_number(&type_option, "HUF18,44", "18HUF", &field_type, &field_rev);
|
||||
assert_number(&type_option, "HUF0.3", "0HUF", &field_type, &field_rev);
|
||||
assert_number(&type_option, "HUF1844", "1 844HUF", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "1 844HUF", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::Koruna => {
|
||||
assert_number(&type_option, "CZK18,44", "18,44CZK", &field_type, &field_rev);
|
||||
assert_number(&type_option, "CZK0.2", "0,2CZK", &field_type, &field_rev);
|
||||
assert_number(&type_option, "CZK1844", "1 844CZK", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "1 844CZK", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::Shekel => {
|
||||
assert_number(&type_option, "Kč18,44", "18,44Kč", &field_type, &field_rev);
|
||||
assert_number(&type_option, "Kč0.2", "0,2Kč", &field_type, &field_rev);
|
||||
assert_number(&type_option, "Kč1844", "1 844Kč", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "1 844Kč", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::ChileanPeso => {
|
||||
assert_number(&type_option, "CLP18.44", "CLP18", &field_type, &field_rev);
|
||||
assert_number(&type_option, "0.5", "CLP0", &field_type, &field_rev);
|
||||
assert_number(&type_option, "CLP1844", "CLP1.844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "CLP1.844", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::PhilippinePeso => {
|
||||
assert_number(&type_option, "₱18,44", "₱1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "₱0.2", "₱0.2", &field_type, &field_rev);
|
||||
assert_number(&type_option, "₱1844", "₱1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "₱1,844", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::Dirham => {
|
||||
assert_number(&type_option, "AED18,44", "1,844AED", &field_type, &field_rev);
|
||||
assert_number(&type_option, "AED0.2", "0.2AED", &field_type, &field_rev);
|
||||
assert_number(&type_option, "AED1844", "1,844AED", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "1,844AED", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::ColombianPeso => {
|
||||
assert_number(&type_option, "COP18.44", "COP18,44", &field_type, &field_rev);
|
||||
assert_number(&type_option, "0.5", "COP0,5", &field_type, &field_rev);
|
||||
assert_number(&type_option, "COP1844", "COP1.844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "COP1.844", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::Riyal => {
|
||||
assert_number(&type_option, "SAR18,44", "SAR1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "SAR0.2", "SAR0.2", &field_type, &field_rev);
|
||||
assert_number(&type_option, "SAR1844", "SAR1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "SAR1,844", &field_type, &field_rev);
|
||||
}
|
||||
|
||||
NumberFormat::Ringgit => {
|
||||
assert_number(&type_option, "MYR18,44", "MYR1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "MYR0.2", "MYR0.2", &field_type, &field_rev);
|
||||
assert_number(&type_option, "MYR1844", "MYR1,844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "MYR1,844", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::Leu => {
|
||||
assert_number(&type_option, "RON18.44", "18,44RON", &field_type, &field_rev);
|
||||
assert_number(&type_option, "0.5", "0,5RON", &field_type, &field_rev);
|
||||
assert_number(&type_option, "RON1844", "1.844RON", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "1.844RON", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::ArgentinePeso => {
|
||||
assert_number(&type_option, "ARS18.44", "ARS18,44", &field_type, &field_rev);
|
||||
assert_number(&type_option, "0.5", "ARS0,5", &field_type, &field_rev);
|
||||
assert_number(&type_option, "ARS1844", "ARS1.844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "ARS1.844", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::UruguayanPeso => {
|
||||
assert_number(&type_option, "UYU18.44", "UYU18,44", &field_type, &field_rev);
|
||||
assert_number(&type_option, "0.5", "UYU0,5", &field_type, &field_rev);
|
||||
assert_number(&type_option, "UYU1844", "UYU1.844", &field_type, &field_rev);
|
||||
assert_number(&type_option, "1844", "UYU1.844", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::Percent => {
|
||||
assert_number(&type_option, "1", "1%", &field_type, &field_rev);
|
||||
assert_number(&type_option, "10.1", "10.1%", &field_type, &field_rev);
|
||||
assert_number(&type_option, "100", "100%", &field_type, &field_rev);
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -122,13 +359,72 @@ mod tests {
|
||||
NumberFormat::USD => {
|
||||
assert_number(&type_option, "18443", "-$18,443", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::CanadianDollar => {
|
||||
assert_number(&type_option, "18443", "-CA$18,443", &field_type, &field_rev)
|
||||
}
|
||||
NumberFormat::EUR => assert_number(&type_option, "18443", "-€18.443", &field_type, &field_rev),
|
||||
NumberFormat::Pound => assert_number(&type_option, "18443", "-£18,443", &field_type, &field_rev),
|
||||
|
||||
NumberFormat::Yen => {
|
||||
assert_number(&type_option, "18443", "-¥18,443", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::EUR => {
|
||||
assert_number(&type_option, "18443", "-€18.443", &field_type, &field_rev);
|
||||
NumberFormat::Ruble => assert_number(&type_option, "18443", "-18.443RUB", &field_type, &field_rev),
|
||||
NumberFormat::Rupee => assert_number(&type_option, "18443", "-₹18,443", &field_type, &field_rev),
|
||||
NumberFormat::Won => assert_number(&type_option, "18443", "-₩18,443", &field_type, &field_rev),
|
||||
|
||||
NumberFormat::Yuan => {
|
||||
assert_number(&type_option, "18443", "-CN¥18,443", &field_type, &field_rev);
|
||||
}
|
||||
_ => {}
|
||||
NumberFormat::Real => {
|
||||
assert_number(&type_option, "18443", "-R$18,443", &field_type, &field_rev);
|
||||
}
|
||||
NumberFormat::Lira => assert_number(&type_option, "18443", "-TRY18.443", &field_type, &field_rev),
|
||||
NumberFormat::Rupiah => assert_number(&type_option, "18443", "-IDR18,443", &field_type, &field_rev),
|
||||
NumberFormat::Franc => assert_number(&type_option, "18443", "-CHF18,443", &field_type, &field_rev),
|
||||
NumberFormat::HongKongDollar => {
|
||||
assert_number(&type_option, "18443", "-HZ$18,443", &field_type, &field_rev)
|
||||
}
|
||||
NumberFormat::NewZealandDollar => {
|
||||
assert_number(&type_option, "18443", "-NZ$18,443", &field_type, &field_rev)
|
||||
}
|
||||
NumberFormat::Krona => assert_number(&type_option, "18443", "-18 443SEK", &field_type, &field_rev),
|
||||
NumberFormat::NorwegianKrone => {
|
||||
assert_number(&type_option, "18443", "-18,443NOK", &field_type, &field_rev)
|
||||
}
|
||||
NumberFormat::MexicanPeso => {
|
||||
assert_number(&type_option, "18443", "-MX$18,443", &field_type, &field_rev)
|
||||
}
|
||||
NumberFormat::Rand => assert_number(&type_option, "18443", "-ZAR18,443", &field_type, &field_rev),
|
||||
NumberFormat::NewTaiwanDollar => {
|
||||
assert_number(&type_option, "18443", "-NT$18,443", &field_type, &field_rev)
|
||||
}
|
||||
NumberFormat::DanishKrone => {
|
||||
assert_number(&type_option, "18443", "-18.443DKK", &field_type, &field_rev)
|
||||
}
|
||||
NumberFormat::Baht => assert_number(&type_option, "18443", "-THB18,443", &field_type, &field_rev),
|
||||
NumberFormat::Forint => assert_number(&type_option, "18443", "-18 443HUF", &field_type, &field_rev),
|
||||
NumberFormat::Koruna => assert_number(&type_option, "18443", "-18 443CZK", &field_type, &field_rev),
|
||||
NumberFormat::Shekel => assert_number(&type_option, "18443", "-18 443Kč", &field_type, &field_rev),
|
||||
NumberFormat::ChileanPeso => {
|
||||
assert_number(&type_option, "18443", "-CLP18.443", &field_type, &field_rev)
|
||||
}
|
||||
NumberFormat::PhilippinePeso => {
|
||||
assert_number(&type_option, "18443", "-₱18,443", &field_type, &field_rev)
|
||||
}
|
||||
NumberFormat::Dirham => assert_number(&type_option, "18443", "-18,443AED", &field_type, &field_rev),
|
||||
NumberFormat::ColombianPeso => {
|
||||
assert_number(&type_option, "18443", "-COP18.443", &field_type, &field_rev)
|
||||
}
|
||||
NumberFormat::Riyal => assert_number(&type_option, "18443", "-SAR18,443", &field_type, &field_rev),
|
||||
NumberFormat::Ringgit => assert_number(&type_option, "18443", "-MYR18,443", &field_type, &field_rev),
|
||||
NumberFormat::Leu => assert_number(&type_option, "18443", "-18.443RON", &field_type, &field_rev),
|
||||
NumberFormat::ArgentinePeso => {
|
||||
assert_number(&type_option, "18443", "-ARS18.443", &field_type, &field_rev)
|
||||
}
|
||||
NumberFormat::UruguayanPeso => {
|
||||
assert_number(&type_option, "18443", "-UYU18.443", &field_type, &field_rev)
|
||||
}
|
||||
NumberFormat::Percent => assert_number(&type_option, "18443", "-18,443%", &field_type, &field_rev),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user