3bf93509a3
Changing from ki18n-rs to ki18n. Might need more changes after publishing.
14 lines
378 B
Rust
14 lines
378 B
Rust
use ki18n::klocalizedstring::KLocalizedString;
|
|
use std::ffi::CString;
|
|
|
|
#[test]
|
|
fn application_domain() {
|
|
const APPLICATION_DOMAIN: &str = "KI18n";
|
|
let domain = CString::new(APPLICATION_DOMAIN).unwrap();
|
|
|
|
KLocalizedString::set_application_domain(&domain);
|
|
let domain = KLocalizedString::application_domain();
|
|
|
|
assert_eq!(domain.to_str().unwrap(), "KI18n");
|
|
}
|