Permalink
Browse files

Added prefix+suffix test.

  • Loading branch information...
1 parent 811c0f5 commit 4877ad9ebac2b9483b33ae2d67cbb3ae79316e5d @eriksoe eriksoe committed Jun 20, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/test/java/com/trifork/deltazip/DeltaZipTest.java
@@ -65,12 +65,14 @@ public void test_two_revs_with(byte[] file, ByteBuffer exp_rev1, ByteBuffer exp_
public void test_add_get() throws Exception {
ByteBuffer rev1 = ByteBuffer.wrap("Hello".getBytes("ISO-8859-1"));
ByteBuffer rev1a = ByteBuffer.wrap("World!".getBytes("ISO-8859-1"));
+ ByteBuffer rev1b = ByteBuffer.wrap("Held!".getBytes("ISO-8859-1"));
ByteBuffer rev2 = ByteBuffer.wrap("Hello, World!".getBytes("ISO-8859-1"));
byte[] file0 = new byte[] {};
test_add_get_with(file0, rev1,rev2); // Would use 'prefix-copy' chunk.
test_add_get_with(file0, rev1a,rev2); // Would use 'offset-copy' chunk.
+ test_add_get_with(file0, rev1b,rev2); // Would use 'prefix-copy' and 'offset-copy'.
//test_add_get_with(file0, rev2,rev1); // Would use 'deflate' chunk.
}

0 comments on commit 4877ad9

Please sign in to comment.