mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-16 21:47:04 +00:00
14 lines
380 B
Rust
14 lines
380 B
Rust
use unic_langid_impl::canonicalize;
|
|
|
|
fn assert_canonicalize(input: &str, output: &str) {
|
|
assert_eq!(&canonicalize(input).unwrap(), output);
|
|
}
|
|
|
|
#[test]
|
|
fn test_canonicalize() {
|
|
assert_canonicalize("Pl", "pl");
|
|
assert_canonicalize("eN-uS", "en-US");
|
|
assert_canonicalize("ZH_hans_hK", "zh-Hans-HK");
|
|
assert_canonicalize("en-scouse-fonipa", "en-fonipa-scouse");
|
|
}
|