|
2 | 2 | (:require [clojure.test :refer [deftest testing is]]
|
3 | 3 | resistor-color-duo))
|
4 | 4 |
|
5 |
| -(deftest value_test_1 |
| 5 | +(deftest resistor-value_test_1 |
6 | 6 | (testing "Brown and black"
|
7 |
| - (is (= 10 (resistor-color-duo/value ["brown" "black"]))))) |
| 7 | + (is (= 10 (resistor-color-duo/resistor-value ["brown" "black"]))))) |
8 | 8 |
|
9 |
| -(deftest value_test_2 |
| 9 | +(deftest resistor-value_test_2 |
10 | 10 | (testing "Blue and grey"
|
11 |
| - (is (= 68 (resistor-color-duo/value ["blue" "grey"]))))) |
| 11 | + (is (= 68 (resistor-color-duo/resistor-value ["blue" "grey"]))))) |
12 | 12 |
|
13 |
| -(deftest value_test_3 |
| 13 | +(deftest resistor-value_test_3 |
14 | 14 | (testing "Yellow and violet"
|
15 |
| - (is (= 47 (resistor-color-duo/value ["yellow" "violet"]))))) |
| 15 | + (is (= 47 (resistor-color-duo/resistor-value ["yellow" "violet"]))))) |
16 | 16 |
|
17 |
| -(deftest value_test_4 |
| 17 | +(deftest resistor-value_test_4 |
18 | 18 | (testing "White and red"
|
19 |
| - (is (= 92 (resistor-color-duo/value ["white" "red"]))))) |
| 19 | + (is (= 92 (resistor-color-duo/resistor-value ["white" "red"]))))) |
20 | 20 |
|
21 |
| -(deftest value_test_5 |
| 21 | +(deftest resistor-value_test_5 |
22 | 22 | (testing "Orange and orange"
|
23 |
| - (is (= 33 (resistor-color-duo/value ["orange" "orange"]))))) |
| 23 | + (is (= 33 (resistor-color-duo/resistor-value ["orange" "orange"]))))) |
24 | 24 |
|
25 |
| -(deftest value_test_6 |
| 25 | +(deftest resistor-value_test_6 |
26 | 26 | (testing "Ignore additional colors"
|
27 |
| - (is (= 51 (resistor-color-duo/value ["green" "brown" "orange"]))))) |
| 27 | + (is (= 51 (resistor-color-duo/resistor-value ["green" "brown" "orange"]))))) |
28 | 28 |
|
29 |
| -(deftest value_test_7 |
| 29 | +(deftest resistor-value_test_7 |
30 | 30 | (testing "Black and brown, one-digit"
|
31 |
| - (is (= 1 (resistor-color-duo/value ["black" "brown"]))))) |
| 31 | + (is (= 1 (resistor-color-duo/resistor-value ["black" "brown"]))))) |
0 commit comments