Commits

Anonymous committed fc659cc

Added all the code to the project

Comments (0)

Files changed (8)

+type: glob
+target/*
+project/boot/*
+

Scala-solitaire-cypher.iml

+<?xml version="1.0" encoding="UTF-8"?>
+<module type="JAVA_MODULE" version="4">
+  <component name="FacetManager">
+    <facet type="Scala" name="Scala">
+      <configuration>
+        <option name="myScalaCompilerJarPaths">
+          <array>
+            <option value="$MODULE_DIR$/../../../Library/Application Support/IntelliJIdea90/Scala/lib/scala-compiler.jar" />
+          </array>
+        </option>
+        <option name="myScalaSdkJarPaths">
+          <array>
+            <option value="$MODULE_DIR$/../../../Library/Application Support/IntelliJIdea90/Scala/lib/scala-library.jar" />
+          </array>
+        </option>
+      </configuration>
+    </facet>
+  </component>
+  <component name="NewModuleRootManager" inherit-compiler-output="true">
+    <exclude-output />
+    <content url="file://$MODULE_DIR$">
+      <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
+    </content>
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>
+

lib/specs-1.6.2.1.jar

Binary file added.

project/build.properties

+#Project properties
+#Mon Jun 07 14:20:01 BST 2010
+project.organization=shudderfix
+project.name=Scala Solitaire Cypher
+sbt.version=0.7.4
+project.version=0.1
+build.scala.versions=2.7.7
+project.initialize=false

src/main/scala/com/shudderfix/Card.scala

+package com.shudderfix
+
+class Card(val value: Int) {
+
+}

src/test/scala/com/shudderfix/CardSpecification.scala

+import org.specs._
+import com.shudderfix.Card
+
+class CardSpec extends Specification {
+	"Card" should {
+		"have a value" in {
+			new Card(3).value must notBeNull
+		}
+	}
+}

src/test/scala/com/shudderfix/Cypher.scala

+package com.shudderfix
+import org.specs._
+
+class Cypher extends Specification {
+
+  "Cypher" should {
+      "be able to encrypt a message" in {}
+      "be able to decrypt a message" in {}
+  }
+
+}

src/test/scala/com/shudderfix/MessageCoderSpecification.scala

+package com.shudderfix
+
+import org.specs._
+
+class MessageCoderSpec extends Specification {
+
+	val message = "Poker Face"
+
+	"Message Coder" should {
+		"encode a Message into standard blocks" in {
+			val blocks = new MessageCoder(message).createMessageBlocks
+			blocks.size must beEqualTo(2)
+		}
+	}
+}