Sha256: e9f1c3491adb6492bafc6af5ef8c212c1cf3a951aa18798f000e9c605fbd6919

Contents?: true

Size: 692 Bytes

Versions: 396

Compression:

Stored size: 692 Bytes

Contents

(ns triangle-test
  (:require [clojure.test :refer [deftest is]]
            triangle))

(deftest equilateral-1
  (is (= :equilateral (triangle/type 2 2 2))))

(deftest equilateral-2
  (is (= :equilateral (triangle/type 10 10 10))))

(deftest isosceles-1
  (is (= :isosceles (triangle/type 3 4 4))))

(deftest isosceles-2
  (is (= :isosceles (triangle/type 4 3 4))))

(deftest scalene
  (is (= :scalene (triangle/type 3 4 5))))

(deftest invalid-1
  (is (= :illogical (triangle/type 1 1 50))))

;; See discussion at https://github.com/exercism/xerlang/issues/85

(deftest invalid-2
  (is (= :illogical (triangle/type 1 2 1))))

(deftest invalid-3
  (is (= :illogical (triangle/type 2 4 2))))

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/clojure/exercises/triangle/test/triangle_test.clj
trackler-2.2.1.179 tracks/clojure/exercises/triangle/test/triangle_test.clj
trackler-2.2.1.178 tracks/clojure/exercises/triangle/test/triangle_test.clj
trackler-2.2.1.177 tracks/clojure/exercises/triangle/test/triangle_test.clj
trackler-2.2.1.176 tracks/clojure/exercises/triangle/test/triangle_test.clj
trackler-2.2.1.175 tracks/clojure/exercises/triangle/test/triangle_test.clj
trackler-2.2.1.174 tracks/clojure/exercises/triangle/test/triangle_test.clj
trackler-2.2.1.173 tracks/clojure/exercises/triangle/test/triangle_test.clj
trackler-2.2.1.172 tracks/clojure/exercises/triangle/test/triangle_test.clj
trackler-2.2.1.171 tracks/clojure/exercises/triangle/test/triangle_test.clj
trackler-2.2.1.170 tracks/clojure/exercises/triangle/test/triangle_test.clj
trackler-2.2.1.169 tracks/clojure/exercises/triangle/test/triangle_test.clj
trackler-2.2.1.167 tracks/clojure/exercises/triangle/test/triangle_test.clj
trackler-2.2.1.166 tracks/clojure/exercises/triangle/test/triangle_test.clj
trackler-2.2.1.165 tracks/clojure/exercises/triangle/test/triangle_test.clj
trackler-2.2.1.164 tracks/clojure/exercises/triangle/test/triangle_test.clj
trackler-2.2.1.163 tracks/clojure/exercises/triangle/test/triangle_test.clj
trackler-2.2.1.162 tracks/clojure/exercises/triangle/test/triangle_test.clj
trackler-2.2.1.161 tracks/clojure/exercises/triangle/test/triangle_test.clj
trackler-2.2.1.160 tracks/clojure/exercises/triangle/test/triangle_test.clj