1448985
@@ -0,0 +1,4 @@
+ #!/bin/bash
+
+ python3 test_suggest_words.py
+ python3 test_dic_availability.py
@@ -0,0 +1,10 @@
+ #!/usr/bin/python3
+ import enchant
+ lang = "ne_NP"
+ try:
+ dic = enchant.request_dict(lang)
+ print("Dictionary for {0} language is available for use".format(lang))
+ except enchant.errors.DictNotFoundError:
+ print("Dictionary is not installed for use")
@@ -0,0 +1,9 @@
+ wdlst = [ "नमस", "अभि", "यथात"]
+ dic = enchant.Dict("ne_NP")
+ for wd in wdlst:
+ dic.check(wd)
+ print("input word = {0}, Suggestions => {1}".format(wd, dic.suggest(wd)))
@@ -0,0 +1,11 @@
+ - hosts: localhost
+ roles:
+ - role: standard-test-basic
+ required_packages:
+ - python3-enchant
+ tags:
+ - classic
+ tests:
+ - sample:
+ dir: scripts/
+ run: ./run_tests.sh
Signed-off-by: Parag Nemade pnemade@fedoraproject.org
Pull-Request has been merged by pnemade
Signed-off-by: Parag Nemade pnemade@fedoraproject.org