skyspell_core 3.0.1

skyspell core library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::*;

// Note: this test will fail if for some reason 'missstake' is in the
// personal dict
#[test]
fn test_check_invalid_word() {
    let dict = EnchantDictionary::new("en_US").unwrap();
    assert!(!dict.check("missstake").unwrap());
}

#[test]
fn test_check_valid_word() {
    let dict = EnchantDictionary::new("en_US").unwrap();
    assert!(dict.check("valid").unwrap());
}