Overview
| Comment: | [core][fr] non blocking tests (should have done that a long time ago) |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | fr | core | rg |
| Files: | files | file ages | folders |
| SHA3-256: |
b2bb75501e07561add9623c6982c4852 |
| User & Date: | olr on 2018-06-30 06:37:38 |
| Other Links: | branch diff | manifest | tags |
Context
|
2018-06-30
| ||
| 07:26 | [build] previous and next token for value function check-in: d4fc6acf12 user: olr tags: build, rg | |
| 06:37 | [core][fr] non blocking tests (should have done that a long time ago) check-in: b2bb75501e user: olr tags: fr, core, rg | |
| 06:30 | [fr] conversion: regex rules -> graph rules check-in: 5cb83eecf5 user: olr tags: fr, rg | |
Changes
Modified gc_lang/fr/modules/tests.py from [c7e6c8b089] to [2653833ccf].
| ︙ | ︙ | |||
146 147 148 149 150 151 152 |
sExceptedSuggs = sExceptedSuggs[1:-1]
else:
sErrorText = sLine.strip()
sExceptedSuggs = ""
sExpectedErrors = self._getExpectedErrors(sErrorText)
sTextToCheck = sErrorText.replace("}}", "").replace("{{", "")
sFoundErrors, sListErr, sFoundSuggs = self._getFoundErrors(sTextToCheck, sOption)
| > | | | | | | > > | > | 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 |
sExceptedSuggs = sExceptedSuggs[1:-1]
else:
sErrorText = sLine.strip()
sExceptedSuggs = ""
sExpectedErrors = self._getExpectedErrors(sErrorText)
sTextToCheck = sErrorText.replace("}}", "").replace("{{", "")
sFoundErrors, sListErr, sFoundSuggs = self._getFoundErrors(sTextToCheck, sOption)
# tests
if sExpectedErrors != sFoundErrors:
print("\n# Line num: " + sLineNum + \
"\n> to check: " + _fuckBackslashUTF8(sTextToCheck) + \
"\n expected: " + sExpectedErrors + \
"\n found: " + sFoundErrors + \
"\n errors: \n" + sListErr)
if sExceptedSuggs:
if sExceptedSuggs != sFoundSuggs:
print("\n# Line num: " + sLineNum + \
"\n> to check: " + _fuckBackslashUTF8(sTextToCheck) + \
"\n errors: \n" + sListErr)
# untested rules
i = 0
for sOpt, sLineId, sRuleId in gce.listRules():
if sLineId not in self._aRuleTested and not re.search("^[0-9]+[sp]$|^[pd]_", sRuleId):
echo(sRuleId, end= ", ")
i += 1
if i:
|
| ︙ | ︙ |