Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 334922 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/wst/jsdt/core/tests/compiler/regression/CharOperationTest.java (-1 / +13 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2005, 2007 IBM Corporation and others.
2
 * Copyright (c) 2005, 2011 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 103-108 Link Here
103
	array2 = new char[] { 'a' , 'b', 'd'};
103
	array2 = new char[] { 'a' , 'b', 'd'};
104
	assertTrue(CharOperation.compareTo(array, array2) < 0);
104
	assertTrue(CharOperation.compareTo(array, array2) < 0);
105
}
105
}
106
public void test008a() {
107
	// https://bugs.eclipse.org/bugs/show_bug.cgi?id=334922
108
	char[] array = "A*".toCharArray();
109
	char[] array2 = "AA".toCharArray();
110
	assertTrue("case sensitive prefix match failed", CharOperation.match(array, array2, true));
111
}
112
public void test008b() {
113
	// https://bugs.eclipse.org/bugs/show_bug.cgi?id=334922
114
	char[] array = "A*".toCharArray();
115
	char[] array2 = "aa".toCharArray();
116
	assertTrue("case insensitive prefix match failed", CharOperation.match(array, array2, false));
117
}
106
public static Class testClass() {
118
public static Class testClass() {
107
	return CharOperationTest.class;
119
	return CharOperationTest.class;
108
}
120
}

Return to bug 334922