view src/hunspell-test.cxx @ 2394:013541fc1bdd

New package: hunspell
author Stefan Löffler <st.loeffler@gmail.com>
date Sat, 14 Apr 2012 14:13:59 +0200
parents
children 695798a54e5e
line wrap: on
line source

#include <iostream>
#include <hunspell.hxx>

int main(int argc, char *argv[])
{
    Hunspell h("hunspell-test.aff", "hunspell-test.dic");

    (void)argc;
    (void)argv;

    if (h.spell("Hello") == 0)
    {
        std::cerr << "Error: hunspell marked correct word as wrong" << std::endl;
    }
    if (h.spell("wrld") != 0)
    {
        std::cerr << "Error: hunspell marked wrong word as correct" << std::endl;
    }
    
    return 0;
}