mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 04:04:25 +00:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FypgCX8LsYYE8fsj4byBm2
24 lines
584 B
Rust
24 lines
584 B
Rust
//! A tiny synthetic Turkish Hunspell dictionary for tests (written for these tests; not taken from
|
|
//! any real dictionary). Real dictionaries are installed on the system, never bundled.
|
|
|
|
/// No affix rules: the forms the tests look up are listed whole.
|
|
pub const AFF: &str = "SET UTF-8\n";
|
|
|
|
/// The words the Turkish tests expect to be known.
|
|
pub const DIC: &str = "7
|
|
kitap
|
|
kitaplar
|
|
ev
|
|
evde
|
|
olacaklardan
|
|
sonra
|
|
geldin
|
|
";
|
|
|
|
pub fn install() {
|
|
crate::hold_dictionary_tests();
|
|
if let Err(e) = super::install_dictionary(AFF, DIC) {
|
|
panic!("test dictionary: {e}");
|
|
}
|
|
}
|