327N/A * The contents of this file are subject to the terms of the 327N/A * Common Development and Distribution License, Version 1.0 only 327N/A * (the "License"). You may not use this file except in compliance 327N/A * See the License for the specific language governing permissions 327N/A * and limitations under the License. 327N/A * When distributing Covered Code, include this CDDL HEADER in each 6982N/A * If applicable, add the following below this CDDL HEADER, with the 6982N/A * fields enclosed by brackets "[]" replaced with your own identifying 327N/A * Portions Copyright [yyyy] [name of copyright owner] 3232N/A * Copyright 2006-2008 Sun Microsystems, Inc. 327N/A * Test the NumericStringSubstringMatchingRule. 942N/A // The matching rule requires ordered non overlapping substrings. 942N/A // Issue #730 was not valid. 942N/A {
"123456789",
new String[] {
"123",
"234",
"567",
"789"},
false },
327N/A {
"123456789",
"12345678",
true },
327N/A {
"123456789",
"2345678",
false },
327N/A {
"123456789",
"1234",
true },
327N/A {
"123456789",
"1",
true },
327N/A {
"123456789",
"678",
false },
327N/A {
"123456789",
"2",
false },
327N/A {
"123456789",
" ",
true },
327N/A {
"123456789",
"123456789",
true },
327N/A {
"123456789",
"1234567890",
false },
327N/A {
"123456789",
"123456789",
true },
327N/A {
"123456789",
"456789",
true },
327N/A {
"123456789",
"567",
false },
327N/A {
"123456789",
"123",
false },
327N/A {
"123456789",
" ",
true },
327N/A {
"123456789",
"0789",
false },