Grammalecte  Check-in [a74cc5a919]

Overview
Comment:[core][py] tests: sort untested rules
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | core
Files: files | file ages | folders
SHA3-256: a74cc5a9192ff5d5c1dae4867ebe8c1346efcdc759a8be0e8352625aeea2aa4a
User & Date: olr on 2021-01-14 19:15:30
Other Links: manifest | tags
Context
2021-01-14
19:51
[core][fr] suggestions improvements check-in: ee36d99241 user: olr tags: trunk, fr, core
19:15
[core][py] tests: sort untested rules check-in: a74cc5a919 user: olr tags: trunk, core
2021-01-13
21:12
[fr] affixes: participe passé d’absoudre, dissoudre, résoudre (Classique/Commun) check-in: 988534fe76 user: olr tags: trunk, fr
Changes

Modified gc_core/py/lang_core/tests_core.py from [35ff717ad9] to [f2f8ff9a94].

119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
        aUntestedRules = set()
        for _, sOpt, sLineId, sRuleId in gc_engine.listRules():
            sRuleId = sRuleId.rstrip("0123456789")
            if sOpt != "@@@@" and sRuleId not in self._aTestedRules and not re.search("^[0-9]+[sp]$|^[pd]_", sRuleId):
                aUntestedRules.add(f"{sLineId}/{sRuleId}")
        if aUntestedRules:
            print()
            for sRule in aUntestedRules:
                echo(sRule)
            echo("  [{} untested rules]".format(len(aUntestedRules)))

    def _splitTestLine (self, sLine):
        sText, sSugg = sLine.split("->>")
        sSugg = sSugg.strip()
        if sSugg.startswith('"') and sSugg.endswith('"'):







|







119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
        aUntestedRules = set()
        for _, sOpt, sLineId, sRuleId in gc_engine.listRules():
            sRuleId = sRuleId.rstrip("0123456789")
            if sOpt != "@@@@" and sRuleId not in self._aTestedRules and not re.search("^[0-9]+[sp]$|^[pd]_", sRuleId):
                aUntestedRules.add(f"{sLineId}/{sRuleId}")
        if aUntestedRules:
            print()
            for sRule in sorted(aUntestedRules):
                echo(sRule)
            echo("  [{} untested rules]".format(len(aUntestedRules)))

    def _splitTestLine (self, sLine):
        sText, sSugg = sLine.split("->>")
        sSugg = sSugg.strip()
        if sSugg.startswith('"') and sSugg.endswith('"'):