Repository: exercism/clojure
Pull request #204 (2017-12-25 09:18:46)

Add stub for hamming distance


Patch:
diff --git a/config.json b/config.json
index 84acfa0..13eb5b1 100644
--- a/config.json
+++ b/config.json
@@ -9,14 +9,6 @@
       "unlocked_by": null,
       "uuid": "1378910d-9bec-4217-bd40-07a8967fa3ad"
     },
-    {
-      "core": false,
-      "difficulty": 1,
-      "slug": "two-fer",
-      "topics": null,
-      "unlocked_by": null,
-      "uuid": "91a1f32c-0dac-4c65-8a13-49da90d21520"
-    },
     {
       "core": false,
       "difficulty": 1,
diff --git a/exercises/hamming/src/hamming.clj b/exercises/hamming/src/hamming.clj
new file mode 100644
index 0000000..8b26318
--- /dev/null
+++ b/exercises/hamming/src/hamming.clj
@@ -0,0 +1,5 @@
+(ns hamming)
+
+(defn distance [] ; <- arglist goes here
+  ;; your code goes here 
+)
diff --git a/exercises/two-fer/README.md b/exercises/two-fer/README.md
deleted file mode 100644
index 12aeecb..0000000
--- a/exercises/two-fer/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# Two-fer
-
-`Two-fer` or `2-fer` is short for two for one. One for you and one for me.
-
-```text
-"One for X, one for me."
-```
-
-When X is a name or "you".
-
-If the given name is "Alice", the result should be "One for Alice, one for me."
-If no name is given, the result should be "One for you, one for me."
-
-## Source
-
-This is an exercise to introduce users to basic programming constructs, just after hello World. [http://en.wikipedia.org/wiki/Two-fer](http://en.wikipedia.org/wiki/Two-fer)
-
-## Submitting Incomplete Solutions
-It's possible to submit an incomplete solution so you can see how others have completed the exercise.
diff --git a/exercises/two-fer/project.clj b/exercises/two-fer/project.clj
deleted file mode 100644
index 8d19a53..0000000
--- a/exercises/two-fer/project.clj
+++ /dev/null
@@ -1,4 +0,0 @@
-(defproject two-fer "0.1.0-SNAPSHOT"
-  :description "two-fer exercise."
-  :url "https://github.com/exercism/clojure/tree/master/exercises/two-fer"
-  :dependencies [[org.clojure/clojure "1.8.0"]])
diff --git a/exercises/two-fer/src/example.clj b/exercises/two-fer/src/example.clj
deleted file mode 100644
index 258c504..0000000
--- a/exercises/two-fer/src/example.clj
+++ /dev/null
@@ -1,5 +0,0 @@
-(ns two-fer)
-
-(defn two-fer 
-  ([] (str "One for you, one for me."))
-  ([name] (str "One for " name ", one for me.")))
diff --git a/exercises/two-fer/src/two_fer.clj b/exercises/two-fer/src/two_fer.clj
deleted file mode 100644
index be7738f..0000000
--- a/exercises/two-fer/src/two_fer.clj
+++ /dev/null
@@ -1,5 +0,0 @@
-(ns two-fer)
-
-(defn two-fer [] ;; <- arglist goes here
-  ;; your code goes here
-)


Test patch:
diff --git a/exercises/two-fer/test/two_fer_test.clj b/exercises/two-fer/test/two_fer_test.clj
deleted file mode 100644
index a1ac329..0000000
--- a/exercises/two-fer/test/two_fer_test.clj
+++ /dev/null
@@ -1,12 +0,0 @@
-(ns two-fer-test
-  (:require [clojure.test :refer [deftest is]]
-            two-fer))
-
-(deftest two-fer-test
-  (is (= "One for you, one for me." (two-fer/two-fer))))
-
-(deftest name-alice-test
-  (is (= "One for Alice, one for me." (two-fer/two-fer "Alice"))))
-
-(deftest name-bob-test
-  (is (= "One for Bob, one for me." (two-fer/two-fer "Bob"))))