2021-12-14 16:25:31 +00:00
|
|
|
use ki18n::klocalizedstring::KLocalizedString;
|
2021-12-14 12:45:49 +00:00
|
|
|
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");
|
|
|
|
}
|
2021-12-15 16:07:05 +00:00
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn languages() {}
|