Overview
| Comment: | [core] tests: better percentage display |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk | core |
| Files: | files | file ages | folders |
| SHA3-256: |
deb80079a2114749225efd12b966ffa4 |
| User & Date: | olr on 2020-12-29 11:48:46 |
| Other Links: | manifest | tags |
Context
|
2020-12-29
| ||
| 12:27 | [fr] ajustements (tests) check-in: e7b22fd393 user: olr tags: trunk, fr | |
| 11:48 | [core] tests: better percentage display check-in: deb80079a2 user: olr tags: trunk, core | |
| 11:35 | [core] tests: show numbers about suggestions testing check-in: 6d08386c17 user: olr tags: trunk, core | |
Changes
Modified gc_core/py/lang_core/tests_core.py from [fa9416c2a2] to [732f98b704].
| ︙ | ︙ | |||
108 109 110 111 112 113 114 |
if sExceptedSuggs != sFoundSuggs:
print("\n# Line num: " + sLineNum + \
"\n> to check: " + _fuckBackslashUTF8(sTextToCheck) + \
"\n expected: " + sExceptedSuggs + \
"\n found: " + sFoundSuggs + \
"\n errors: \n" + sListErr)
nUnexpectedErrors += 1
| | | 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
if 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)
# untested rules
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):
|
| ︙ | ︙ |