mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-08-28 23:01:16 +00:00
The first ScalaTest specification: a Hash must be 32 bytes long
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user