blob: 355dda98e253c33255f671d0e0219dab50bd9e7b [file] [log] [blame]
// This file is part of ICU4X. For terms of use, please see the file
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
#![no_main] // https://github.com/unicode-org/icu4x/issues/395
icu_benchmark_macros::static_setup!();
use icu::list::{ListFormatter, ListLength};
use icu::locid::locale;
#[no_mangle]
fn main(_argc: isize, _argv: *const *const u8) -> isize {
icu_benchmark_macros::main_setup!();
let list_formatter =
ListFormatter::try_new_and_with_length(&locale!("es").into(), ListLength::Wide).unwrap();
println!(
"{}",
list_formatter.format(["EspaƱa", "Francia", "Suiza", "Italia"].iter())
);
0
}