]> source.dussan.org Git - jgit.git/commit
Define an abstract DiffAlgorithm test framework 40/1640/2
authorShawn O. Pearce <spearce@spearce.org>
Tue, 21 Sep 2010 16:24:12 +0000 (09:24 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 22 Sep 2010 01:01:00 +0000 (18:01 -0700)
commitb60eefb247191b37dea3d51e367ed89a2df575a5
tree9ac64733fd0a1bc1b7eebd0e75f86f0e8cff0072
parent857d68d17329637dde8b143945e61d90d374311f
Define an abstract DiffAlgorithm test framework

For certain tiny input sequences, every DiffAlgorithm should produce
exactly the same results, as there should be no ambiguity.  Package
these up in an abstract TestCase that algorithms can extend from in
order to perform basic validation of their implementation.

Since these tests are more complete than what we used to have for
the MyersDiff algorithm, throw away Johannes' tests and only use
this new package.

Change-Id: I9a044330887c849ad4c78aa5c7aa04c783c10252
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/AbstractDiffTestCase.java [new file with mode: 0644]
org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/MyersDiffTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/PatienceDiffTest.java