-
-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scrabble-score: update to latest (#737)
* scrabble-score: add generator and regenerate tests [no important files changed] * Update exercises/practice/scrabble-score/test/scrabble_score_test.clj Co-authored-by: Anastasios Chatzialexiou <[email protected]> --------- Co-authored-by: Anastasios Chatzialexiou <[email protected]>
- Loading branch information
1 parent
5c28e85
commit 25a34f0
Showing
3 changed files
with
34 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(ns scrabble-score-test | ||
(:require [clojure.test :refer [deftest testing is]] | ||
scrabble-score)) | ||
{{#test_cases.score}} | ||
(deftest score-word_test_{{idx}} | ||
(testing "{{description}}" | ||
(is (= {{expected}} (scrabble-score/score-word "{{input.word}}"))))) | ||
{{/test_cases.score~}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
(ns scrabble-score) | ||
|
||
(defn score-letter [] ;; <- arglist goes here | ||
;; your code goes here | ||
) | ||
|
||
(defn score-word [] ;; <- arglist goes here | ||
;; your code goes here | ||
) | ||
(defn score-word | ||
"Calculate a word's scrabble score" | ||
[word] | ||
;; function body | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters