Sha256: b31ad5304207793bf1f82ff3fe1b786dec3f0a6de41f9378cb2df8ea3bf31dca

Contents?: true

Size: 550 Bytes

Versions: 396

Compression:

Stored size: 550 Bytes

Contents

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

(deftest square-1
  (is (= 1 (grains/square 1))))

(deftest square-2
  (is (= 2 (grains/square 2))))

(deftest square-3
  (is (= 4 (grains/square 3))))

(deftest square-4
  (is (= 8 (grains/square 4))))

(deftest square-16
  (is (= 32768 (grains/square 16))))

(deftest square-32
  (is (= 2147483648 (grains/square 32))))

(deftest square-64
  (is (= 9223372036854775808 (grains/square 64))))

(deftest total-grains
  (is (= 18446744073709551615  (grains/total))))

Version data entries

396 entries across 396 versions & 1 rubygems

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