From 691ce6fec74cd9ebf93ce0bb9a1d9fa746d315a3 Mon Sep 17 00:00:00 2001 From: str4d Date: Mon, 30 Jul 2012 12:36:00 +0000 Subject: [PATCH] The first ScalaTest specification: a Hash must be 32 bytes long --- .../test/scalatest/net/i2p/data/HashSpec.scala | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 core/java/test/scalatest/net/i2p/data/HashSpec.scala diff --git a/core/java/test/scalatest/net/i2p/data/HashSpec.scala b/core/java/test/scalatest/net/i2p/data/HashSpec.scala new file mode 100644 index 000000000..71b7ccc30 --- /dev/null +++ b/core/java/test/scalatest/net/i2p/data/HashSpec.scala @@ -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) + } + } +}