Skip to content

Commit

Permalink
Added prefix+suffix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
esstrifork committed Jun 20, 2011
1 parent 811c0f5 commit 4877ad9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/java/com/trifork/deltazip/DeltaZipTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}

Expand Down

0 comments on commit 4877ad9

Please sign in to comment.