From 7ac17f443ff806cd1a4543ef8bec89fa7eda386b Mon Sep 17 00:00:00 2001 From: Hiroshi Miura Date: Wed, 18 Dec 2024 23:41:45 +0900 Subject: [PATCH] fix: when disable threshold, set value <= 0 - CalcMatchStatisticsTest checks with disabling threshold, so set it -1 Signed-off-by: Hiroshi Miura --- .../src/org/omegat/core/statistics/CalcMatchStatisticsTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/src/org/omegat/core/statistics/CalcMatchStatisticsTest.java b/test/src/org/omegat/core/statistics/CalcMatchStatisticsTest.java index e90729d4c6..75e95739d8 100644 --- a/test/src/org/omegat/core/statistics/CalcMatchStatisticsTest.java +++ b/test/src/org/omegat/core/statistics/CalcMatchStatisticsTest.java @@ -124,7 +124,7 @@ public void testCalcMatchStatics() throws Exception { Assert.assertEquals("5699", result[7][4]); // change threshold - calcMatchStatistics = new CalcMatchStatisticsMock(project, segmenter, callback, 70); + calcMatchStatistics = new CalcMatchStatisticsMock(project, segmenter, callback, -1); calcMatchStatistics.start(); try { calcMatchStatistics.join();