Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 187706 Details for
Bug 334922
CharOperation#match does not work as expected when isCaseSensitive is passed as false
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
unit tests
3349224-tests.patch (text/plain), 1.77 KB, created by
Nitin Dahyabhai
on 2011-01-26 21:13:58 EST
(
hide
)
Description:
unit tests
Filename:
MIME Type:
Creator:
Nitin Dahyabhai
Created:
2011-01-26 21:13:58 EST
Size:
1.77 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.wst.jsdt.core.tests.compiler >Index: src/org/eclipse/wst/jsdt/core/tests/compiler/regression/CharOperationTest.java >=================================================================== >RCS file: /cvsroot/webtools/org.eclipse.jsdt/tests/org.eclipse.wst.jsdt.core.tests.compiler/src/org/eclipse/wst/jsdt/core/tests/compiler/regression/CharOperationTest.java,v >retrieving revision 1.3 >diff -u -r1.3 CharOperationTest.java >--- src/org/eclipse/wst/jsdt/core/tests/compiler/regression/CharOperationTest.java 19 Jun 2009 20:40:16 -0000 1.3 >+++ src/org/eclipse/wst/jsdt/core/tests/compiler/regression/CharOperationTest.java 27 Jan 2011 02:13:25 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2005, 2007 IBM Corporation and others. >+ * Copyright (c) 2005, 2011 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -103,6 +103,18 @@ > array2 = new char[] { 'a' , 'b', 'd'}; > assertTrue(CharOperation.compareTo(array, array2) < 0); > } >+public void test008a() { >+ // https://bugs.eclipse.org/bugs/show_bug.cgi?id=334922 >+ char[] array = "A*".toCharArray(); >+ char[] array2 = "AA".toCharArray(); >+ assertTrue("case sensitive prefix match failed", CharOperation.match(array, array2, true)); >+} >+public void test008b() { >+ // https://bugs.eclipse.org/bugs/show_bug.cgi?id=334922 >+ char[] array = "A*".toCharArray(); >+ char[] array2 = "aa".toCharArray(); >+ assertTrue("case insensitive prefix match failed", CharOperation.match(array, array2, false)); >+} > public static Class testClass() { > return CharOperationTest.class; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 334922
:
187210
| 187706