omegat
omegat copied to clipboard
[BUGS#1248,1251] add regression test and refactor FindMatches class
Pull request type
Please mark github LABEL of the type of change your PR introduces:
- Bug fix -> [bug]
Which ticket is resolved?
-
tm/penalty-nnn value is not respected
-
https://sourceforge.net/p/omegat/bugs/1248/
-
FindMatcher always search separate segment match without penalty
-
https://sourceforge.net/p/omegat/bugs/1251/
What does this PR change?
- Add regression test for BUGS#1248 and 1251 against both
FindMatches
andFindMatchesThread
classes, that is failed by the bug reported. - Split
FindMatches#search
method tosearchNormal
andsearchSegmented
, and removeboolean allowSeparateSegmentMatch
argument from constructor. - Refactor
FindMatchesThread#search
to callsearchNormal
thensearchSegmented
if necessary. -
searchSEgmented
method skips external TMs.
Other information
❌ Run Gradle test failed:
❌ Run Gradle test failed:
❌ Run Gradle test failed:
A topic branch here waiting a realization of GUI behavior acceptance test #964 is accepted.
A topic branch here waiting a realization of GUI behavior acceptance test #964 is accepted.
GUI testing is not stable to be integrated. So we should merge it now.