jgit/org.eclipse.jgit.test/tst/org/eclipse/jgit
Shawn O. Pearce dd63f5cfc1 Fix FooterLine.matches(FooterKey) on same length keys
If two keys are the same length, but don't share the same sequence
of characters, we were incorrectly claiming they still matched due
to a bug in the for loop condition.  I used the wrong variable and
the loop never executed, resulting in equality anytime the two keys
being compared were the same length.

Use the proper local variable to loop through the arrays, and add
a JUnit test to verify equality works as expected.

Change-Id: I4a02400e65a9b2e0da925b05a2cc4b579e1dd33a
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
2010-05-04 16:25:20 -07:00
..
diff Add performance tests for MyersDiff 2009-11-05 00:27:21 +01:00
dircache Don't allow DirCacheEntry with mode of 0 2010-02-03 19:58:20 -08:00
fnmatch Initial JGit contribution to eclipse.org 2009-09-29 16:47:03 -07:00
lib Reduce multi-level buffered streams in transport code 2010-03-12 16:08:14 -08:00
merge Merge branch 'cq-diff' 2010-01-06 09:55:19 -08:00
nls Fix NLS to build under Java 5 2010-03-12 10:26:06 -08:00
patch Initial JGit contribution to eclipse.org 2009-09-29 16:47:03 -07:00
revwalk Fix FooterLine.matches(FooterKey) on same length keys 2010-05-04 16:25:20 -07:00
transport Fix ReceivePackRefFilterTest on Windows 2010-04-27 17:21:19 -07:00
treewalk Initial JGit contribution to eclipse.org 2009-09-29 16:47:03 -07:00
util Make parsing of PersonIdent from raw byte array fault-tolerant. 2010-03-23 09:21:18 +01:00