skyspell_core 2.0.0

skyspell core library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Note: these tests will fail if for some reason 'missstake' is in
// the personal dict, or if no Enchant provider for the US English dictionary is found,
// and there's no good way to know :(
//
#[macro_export]
macro_rules! test_dictionary {
    ($dictionary:ty) => {
        use $crate::Dictionary;

        #[test]
        fn test_check_valid_word() {
            let dict = <$dictionary>::new("en_US").unwrap();
            assert!(!dict.check("missstake").unwrap());
        }
    };
}