forked from I2P_Developers/i2p.i2p
The first ScalaTest specification: a Hash must be 32 bytes long
This commit is contained in:
17
core/java/test/scalatest/net/i2p/data/HashSpec.scala
Normal file
17
core/java/test/scalatest/net/i2p/data/HashSpec.scala
Normal 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)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user