Grammalecte  Check-in [ce35c1e40c]

Overview
Comment:[build][py] tests: don’t show wrong suggestions when detection don’t match what is expected
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | build | rg
Files: files | file ages | folders
SHA3-256: ce35c1e40c13a8b8111c8674b887d2c790696c57ef2805b9be34e019121917aa
User & Date: olr on 2018-07-11 06:57:02
Other Links: branch diff | manifest | tags
Context
2018-07-11
09:27
[fr] conversion: regex rules -> graph rules check-in: e9720b3b87 user: olr tags: fr, rg
06:57
[build][py] tests: don’t show wrong suggestions when detection don’t match what is expected check-in: ce35c1e40c user: olr tags: build, rg
05:39
[fr] faux positif check-in: a14f734037 user: olr tags: fr, rg
Changes

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

153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
                # 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  expected: " + sExceptedSuggs + \
                              "\n  found:    " + sFoundSuggs + \
                              "\n  errors:   \n" + sListErr)
        # untested rules







|







153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
                # tests
                if sExpectedErrors != sFoundErrors:
                    print("\n# Line num: " + sLineNum + \
                          "\n> to check: " + _fuckBackslashUTF8(sTextToCheck) + \
                          "\n  expected: " + sExpectedErrors + \
                          "\n  found:    " + sFoundErrors + \
                          "\n  errors:   \n" + sListErr)
                elif 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