Grammalecte  Check-in [6929379b61]

Overview
Comment:[fr] test: affiche les différences des suggestions erronées
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | fr | rg
Files: files | file ages | folders
SHA3-256: 6929379b61f6a56009331140dd985fc905cacd943f5ff1fb22566b3acb2c6b5e
User & Date: olr on 2018-07-09 17:52:57
Other Links: branch diff | manifest | tags
Context
2018-07-09
18:11
[fr] conversion: regex rules -> graph rules check-in: 060199513b user: olr tags: fr, rg
17:52
[fr] test: affiche les différences des suggestions erronées check-in: 6929379b61 user: olr tags: fr, rg
17:48
[fr] conversion: regex rules -> graph rules check-in: 986933f49f user: olr tags: fr, rg
Changes

Modified gc_lang/fr/modules/tests.py from [2653833ccf] to [33d7bfdeba].

157
158
159
160
161
162
163


164
165
166
167
168
169
170
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172







+
+







                          "\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  expected: " + sExceptedSuggs + \
                              "\n  found:    " + sFoundSuggs + \
                              "\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