The first ScalaTest specification: a Hash must be 32 bytes long

This commit is contained in:
str4d
2012-07-30 12:36:00 +00:00
parent 618f214a4f
commit 691ce6fec7

View File

@ -0,0 +1,17 @@
package net.i2p.data;
import org.scalatest.FunSpec
import org.scalatest.matchers.ShouldMatchers
/**
* @author str4d
*/
class HashSpec extends FunSpec with ShouldMatchers {
val hash = new Hash
describe("A Hash") {
it("should be 32 bytes long") {
hash.length should be (32)
}
}
}