Bug 30870 NameMatcher - incorrect way of testing [code manipulation]
20030204 NameMatcher has a main method that is used for testing it should be removed and proper tests should be added to the jdt ui suite (it's the only class in jdt ui with a main method)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NameMatcher.java
return 200;
		}
		
		if (name2len - nMatched > nMatched) {
			return -1;
		}
		
		int tolerance= name2len / 4 + 1;
		return (tolerance - (k - i)) * 256 / tolerance;
	}
	
	private static boolean isSimilarChar(char ch1, char ch2) {
		return Character.toLowerCase(ch1) == Character.toLowerCase(ch2);
	}
	
	private static void test(String name1, String name2) {
		int sim= getSimilarity(name1, name2);
		System.out.println(name1 + " - " + name2 + " : " + sim); 
	}
	
	public static void main(String[] arguments) {
		test("XXX", "XSecurity"); 
		
		test("runner", "gunner"); 
		test("rundner", "gunner"); 
		test("rundner", "rund"); 
		test("test", "rund"); 
	}
}