Skip to content

Commit

Permalink
Add test cases #78
Browse files Browse the repository at this point in the history
  • Loading branch information
7pairs committed Jul 2, 2020
1 parent 84a7093 commit 17df771
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/blue/lions/pyslash/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"ヤクルト" "東京ヤクルト"
target))

(defn- yoza
(defn yoza
[target]
(if (= target "与座") "與座" target))

Expand Down
6 changes: 6 additions & 0 deletions test/blue/lions/pyslash/core_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@
(is (= (core/get-formal-team-name "日本ハム") "北海道日本ハム")))
(testing "オリックスバファローズ"
(is (= (core/get-formal-team-name "オリックス") "オリックス"))))

(deftest test-yoza
(testing "与座"
(is (= (core/yoza "与座") "與座")))
(testing "ニール"
(is (= (core/yoza "ニール") "ニール"))))

0 comments on commit 17df771

Please sign in to comment.