wordcheck 0.1.0

A simple English word validator
Documentation
use wordcheck::CheckWord;

#[test]
fn test_common_words() {
    let validator = CheckWord::new();
    let common_words = vec!["the", "be", "to", "of", "and"];
    for word in common_words {
        assert!(validator.is_valid(word), "{} should be valid", word);
    }
}

#[test]
fn test_uncommon_words() {
    let validator = CheckWord::new();
    let common_words = vec!["nucleolus", "mountaineering", "ephemeral", "acumen", "nauseant"];
    for word in common_words {
        assert!(validator.is_valid(word), "{} should be valid", word);
    }
}

#[test]
fn test_word_getter() {
    let validator = CheckWord::new();
    let words = validator.get_words();
    assert!(!words.is_empty());
}