File: test_system_locale_windows.rs

package info (click to toggle)
rust-num-format 0.4.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 564 kB
  • sloc: makefile: 2
file content (12 lines) | stat: -rw-r--r-- 293 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#![cfg(all(feature = "with-system-locale", windows))]

use num_format::SystemLocale;

#[test]
fn test_windows() {
    let names = SystemLocale::available_names().unwrap();
    assert!(!names.is_empty());
    for name in &names {
        let _ = SystemLocale::from_name(name).unwrap();
    }
}