From fc48b50fd90a21705a1094e75b6ca9ee9f3a7582 Mon Sep 17 00:00:00 2001 From: PieterOlivier <103408614+PieterOlivier@users.noreply.github.com> Date: Tue, 15 Oct 2024 09:43:07 +0200 Subject: [PATCH] Update src/org/rascalmpl/library/lang/rascal/tests/concrete/recovery/RecoveryTestSupport.rsc Co-authored-by: sungshik <16154899+sungshik@users.noreply.github.com> --- .../lang/rascal/tests/concrete/recovery/RecoveryTestSupport.rsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/rascalmpl/library/lang/rascal/tests/concrete/recovery/RecoveryTestSupport.rsc b/src/org/rascalmpl/library/lang/rascal/tests/concrete/recovery/RecoveryTestSupport.rsc index 2324d6f326d..530e74c1222 100644 --- a/src/org/rascalmpl/library/lang/rascal/tests/concrete/recovery/RecoveryTestSupport.rsc +++ b/src/org/rascalmpl/library/lang/rascal/tests/concrete/recovery/RecoveryTestSupport.rsc @@ -331,7 +331,7 @@ void printFrequencyTableStats(str label, FrequencyTable frequencyTable, str unit total += val*count; - if ((val != 0 || !ignoreZero) && count > medianCount) { + if (!(val == 0 && ignoreZero) && count > medianCount) { medianCount = count; median = val; }