Fill in basic datastructure length tests

This commit is contained in:
str4d
2013-06-09 12:21:35 +00:00
parent 182fe900b8
commit 3b7daafad7
7 changed files with 35 additions and 7 deletions

View File

@ -7,7 +7,11 @@ import org.scalatest.matchers.ShouldMatchers
* @author str4d
*/
class PrivateKeySpec extends FunSpec with ShouldMatchers {
val privateKey = new PrivateKey
describe("A PrivateKey") {
it("should be 256 bytes long") (pending)
it("should be 256 bytes long") {
privateKey should have length (256)
}
}
}

View File

@ -7,7 +7,11 @@ import org.scalatest.matchers.ShouldMatchers
* @author str4d
*/
class PublicKeySpec extends FunSpec with ShouldMatchers {
val publicKey = new PublicKey
describe("A PublicKey") {
it("should be 256 bytes long") (pending)
it("should be 256 bytes long") {
publicKey should have length (256)
}
}
}

View File

@ -7,7 +7,11 @@ import org.scalatest.matchers.ShouldMatchers
* @author str4d
*/
class SessionKeySpec extends FunSpec with ShouldMatchers {
val sessionKey = new SessionKey
describe("A SessionKey") {
it("should be 32 bytes long") (pending)
it("should be 32 bytes long") {
sessionKey should have length (32)
}
}
}

View File

@ -7,7 +7,11 @@ import org.scalatest.matchers.ShouldMatchers
* @author str4d
*/
class SessionTagSpec extends FunSpec with ShouldMatchers {
val sessionTag = new SessionTag
describe("A SessionTag") {
it("should be 32 bytes long") (pending)
it("should be 32 bytes long") {
sessionTag should have length (32)
}
}
}

View File

@ -7,7 +7,11 @@ import org.scalatest.matchers.ShouldMatchers
* @author str4d
*/
class SignatureSpec extends FunSpec with ShouldMatchers {
val signature = new Signature
describe("A Signature") {
it("should be 40 bytes long") (pending)
it("should be 40 bytes long") {
signature should have length (40)
}
}
}

View File

@ -7,7 +7,11 @@ import org.scalatest.matchers.ShouldMatchers
* @author str4d
*/
class SigningPrivateKeySpec extends FunSpec with ShouldMatchers {
val signingPrivateKey = new SigningPrivateKey
describe("A SigningPrivateKey") {
it("should be 20 bytes long") (pending)
it("should be 20 bytes long") {
signingPrivateKey should have length (20)
}
}
}

View File

@ -7,7 +7,11 @@ import org.scalatest.matchers.ShouldMatchers
* @author str4d
*/
class SigningPublicKeySpec extends FunSpec with ShouldMatchers {
val signingPublicKey = new SigningPublicKey
describe("A SigningPublicKey") {
it("should be 128 bytes long") (pending)
it("should be 128 bytes long") {
signingPublicKey should have length (128)
}
}
}