Skip to content

Commit

Permalink
Add test.
Browse files Browse the repository at this point in the history
Former-commit-id: a757cdd0a9681c50b854bb7e29a15ea9504c6527
  • Loading branch information
dkocher committed Aug 21, 2015
1 parent 6ced6fe commit e777a71
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/ch/cyberduck/core/io/MD5ChecksumComputeTest.java
Expand Up @@ -17,4 +17,10 @@ public void testCompute() throws Exception {
assertEquals("a43c1b0aa53a0c908810c06ab1ff3967",
new MD5ChecksumCompute().compute(IOUtils.toInputStream("input")).hash);
}

@Test
public void testComputeEmptyString() throws Exception {
assertEquals("d41d8cd98f00b204e9800998ecf8427e",
new MD5ChecksumCompute().compute(IOUtils.toInputStream("")).hash);
}
}

0 comments on commit e777a71

Please sign in to comment.