New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUGS#1248,1251] add regression test and refactor FindMatches class #963
Draft
miurahr
wants to merge
3
commits into
master
Choose a base branch
from
topic/miurahr/matches/fix-separate-segmented
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
miurahr
changed the title
[BUGS#1248] feat: add regression test
[BUGS#1248,1251] feat: add regression test
Feb 17, 2024
miurahr
force-pushed
the
topic/miurahr/matches/fix-separate-segmented
branch
from
February 17, 2024 00:43
bc9c2cd
to
e42b6d3
Compare
miurahr
changed the title
[BUGS#1248,1251] feat: add regression test
[BUGS#1248,1251] add regression test and refactor FindMatches class
Feb 17, 2024
❌ Run Gradle test failed: |
2 similar comments
❌ Run Gradle test failed: |
❌ Run Gradle test failed: |
- Add FindMatchesThreadTest to reproduce BUGS#1248 - Add a test case to test FindMatches with the case of BUGS#1248. Signed-off-by: Hiroshi Miura <miurahr@linux.com>
miurahr
force-pushed
the
topic/miurahr/matches/fix-separate-segmented
branch
from
February 17, 2024 07:12
9da1a14
to
bc92bea
Compare
- Split FindMatches#search method to searchNormal and searchSegmented, and remove boolean allowSeparateSegmentMatch argument from constructor. - Refactor FindMatchesThread#search to call searchNormal then searchSegmented if necessary. searchSEgmented method skips external TMs. Signed-off-by: Hiroshi Miura <miurahr@linux.com>
miurahr
force-pushed
the
topic/miurahr/matches/fix-separate-segmented
branch
from
February 17, 2024 07:23
bc92bea
to
4665a8e
Compare
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
A topic branch here waiting a realization of GUI behavior acceptance test #964 is accepted. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull request type
Please mark github LABEL of the type of change your PR introduces:
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?
FindMatches
andFindMatchesThread
classes, that is failed by the bug reported.FindMatches#search
method tosearchNormal
andsearchSegmented
, and removeboolean allowSeparateSegmentMatch
argument from constructor.FindMatchesThread#search
to callsearchNormal
thensearchSegmented
if necessary.searchSEgmented
method skips external TMs.Other information