Skip to content
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
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

miurahr
Copy link
Member

@miurahr miurahr commented Feb 17, 2024

Pull request type

Please mark github LABEL of the type of change your PR introduces:

  • Bug fix -> [bug]

Which ticket is resolved?

What does this PR change?

  • Add regression test for BUGS#1248 and 1251 against both FindMatches and FindMatchesThread classes, that is failed by the bug reported.
  • 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.

Other information

@miurahr miurahr changed the title [BUGS#1248] feat: add regression test [BUGS#1248,1251] feat: add regression test Feb 17, 2024
@miurahr miurahr added the bug label Feb 17, 2024
@miurahr miurahr force-pushed the topic/miurahr/matches/fix-separate-segmented branch from bc9c2cd to e42b6d3 Compare February 17, 2024 00:43
@miurahr miurahr changed the title [BUGS#1248,1251] feat: add regression test [BUGS#1248,1251] add regression test and refactor FindMatches class Feb 17, 2024
Copy link

❌ Run Gradle test failed:

2 similar comments
Copy link

❌ Run Gradle test failed:

Copy link

❌ 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 miurahr force-pushed the topic/miurahr/matches/fix-separate-segmented branch from 9da1a14 to bc92bea Compare February 17, 2024 07:12
- 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 miurahr force-pushed the topic/miurahr/matches/fix-separate-segmented branch from bc92bea to 4665a8e Compare February 17, 2024 07:23
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
@omegat-org omegat-org deleted a comment from github-actions bot Feb 17, 2024
@omegat-org omegat-org deleted a comment from github-actions bot Feb 17, 2024
@omegat-org omegat-org deleted a comment from github-actions bot Feb 17, 2024
@omegat-org omegat-org deleted a comment from github-actions bot Feb 17, 2024
@omegat-org omegat-org deleted a comment from github-actions bot Feb 17, 2024
@omegat-org omegat-org deleted a comment from github-actions bot Feb 17, 2024
@omegat-org omegat-org deleted a comment from github-actions bot Feb 17, 2024
@miurahr
Copy link
Member Author

miurahr commented Mar 9, 2024

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
Projects
None yet
1 participant