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