aboutsummaryrefslogtreecommitdiff
path: root/challenge-199/tyler-wardhaugh/clojure/test/c199/t2_test.clj
blob: 4e81d5967d3bc1b6860fe7efe355829ab46694c8 (plain)
1
2
3
4
5
6
7
8
(ns c199.t2-test
  (:require [clojure.test :refer [deftest is testing]]
            [c199.t2 :refer [good-triplets]]))

(deftest task-2
  (testing "Task 2 produces the correct results from examples in the description"
    (is (= 4 (good-triplets 7 2 3 [3 0 1 1 9 7])))
    (is (= 0 (good-triplets 0 0 1 [1 1 2 2 3])))))