View | Details | Raw Unified | Return to bug 58353
Collapse All | Expand All

(-)src/testcases/org/apache/poi/ss/formula/functions/TestMatch.java (+1 lines)
Lines 89-94 Link Here
89
		confirmInt(2, invokeMatch(new NumberEval(10), ae, MATCH_EXACT));
89
		confirmInt(2, invokeMatch(new NumberEval(10), ae, MATCH_EXACT));
90
		confirmInt(4, invokeMatch(new NumberEval(9), ae, MATCH_SMALLEST_GTE));
90
		confirmInt(4, invokeMatch(new NumberEval(9), ae, MATCH_SMALLEST_GTE));
91
		confirmInt(1, invokeMatch(new NumberEval(20), ae, MATCH_SMALLEST_GTE));
91
		confirmInt(1, invokeMatch(new NumberEval(20), ae, MATCH_SMALLEST_GTE));
92
		confirmInt(5, invokeMatch(new NumberEval(3), ae, MATCH_SMALLEST_GTE));
92
		assertEquals(ErrorEval.NA, invokeMatch(new NumberEval(20), ae, MATCH_EXACT));
93
		assertEquals(ErrorEval.NA, invokeMatch(new NumberEval(20), ae, MATCH_EXACT));
93
		assertEquals(ErrorEval.NA, invokeMatch(new NumberEval(26), ae, MATCH_SMALLEST_GTE));
94
		assertEquals(ErrorEval.NA, invokeMatch(new NumberEval(26), ae, MATCH_SMALLEST_GTE));
94
	}
95
	}
(-)src/java/org/apache/poi/ss/formula/functions/Match.java (-2 / +1 lines)
Lines 228-235 Link Here
228
				return i-1;
228
				return i-1;
229
			}
229
			}
230
		}
230
		}
231
231
		return size-1;
232
		throw new EvaluationException(ErrorEval.NA);
233
	}
232
	}
234
233
235
	private static LookupValueComparer createLookupComparer(ValueEval lookupValue, boolean matchExact) {
234
	private static LookupValueComparer createLookupComparer(ValueEval lookupValue, boolean matchExact) {

Return to bug 58353