Grammalecte  Check-in [d2dbd35eb8]

Overview
Comment:[core] label clarity
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | core
Files: files | file ages | folders
SHA3-256: d2dbd35eb863aafdef4f329692507318bff578720a2766cafdf67a7037181f4b
User & Date: olr on 2025-09-18 12:35:07
Other Links: manifest | tags
Context
2025-09-18
12:39
[graphspell] suggestion mechanism improvement: Damerau-Levenshtein extension check-in: 6c7fd16428 user: olr tags: trunk, major_change, graphspell
12:35
[core] label clarity check-in: d2dbd35eb8 user: olr tags: trunk, core
2025-09-16
18:03
[graphspell][fr] améliorations des suggestions ad hoc pour les ordinaux check-in: 1f3aef957f user: olr tags: trunk, fr, graphspell
Changes

Modified gc_core/py/lang_core/tests_core.py from [b93cf9942d] to [34a2e097eb].

108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
                    if not self._checkSuggestions(sExceptedSuggs, sFoundSuggs):
                        print("\n# Line num: " + sLineNum + \
                              "\n> to check: " + _fuckBackslashUTF8(sTextToCheck) + \
                              "\n  expected: " + sExceptedSuggs + \
                              "\n  found:    " + sFoundSuggs + \
                              "\n  errors:   \n" + sListErr)
                        nUnexpectedErrors += 1
            print("Tests with expected errors:", nTestWithExpectedError, " and suggestions:", nTestWithExpectedErrorAndSugg, "> {:.4} %".format(nTestWithExpectedErrorAndSugg/nTestWithExpectedError*100))
            if nUnexpectedErrors:
                print("Unexpected errors:", nUnexpectedErrors)
            self._showUntestedRules()

    def _showUntestedRules (self):
        aUntestedRules = set()
        for _, sOpt, sLineId, sRuleId in gc_engine.listRules():







|







108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
                    if not self._checkSuggestions(sExceptedSuggs, sFoundSuggs):
                        print("\n# Line num: " + sLineNum + \
                              "\n> to check: " + _fuckBackslashUTF8(sTextToCheck) + \
                              "\n  expected: " + sExceptedSuggs + \
                              "\n  found:    " + sFoundSuggs + \
                              "\n  errors:   \n" + sListErr)
                        nUnexpectedErrors += 1
            print("Tests with expected errors:", nTestWithExpectedError, " and suggestions:", nTestWithExpectedErrorAndSugg, "> Success: {:.4} %".format(nTestWithExpectedErrorAndSugg/nTestWithExpectedError*100))
            if nUnexpectedErrors:
                print("Unexpected errors:", nUnexpectedErrors)
            self._showUntestedRules()

    def _showUntestedRules (self):
        aUntestedRules = set()
        for _, sOpt, sLineId, sRuleId in gc_engine.listRules():