Sha256: 0682d09e5829ac3bc97a5cf319a2a5dc413f640100be685a32f6d9ab21748c0d

Contents?: true

Size: 612 Bytes

Versions: 100

Compression:

Stored size: 612 Bytes

Contents

(ns series-test
  (:require [clojure.test :refer [deftest is testing]]
            [series :refer [slices]]))

(deftest empty-string
  (testing "empty string with any number"
    (is (= [] (slices "" 1)))))

(deftest number-eq-zero
  (testing "number = 0"
    (is (= [""] (slices "123" 0)))))

(deftest number>string
  (testing "number > string-length"
    (is (= [] (slices "123" 1000)))))

(deftest number=string
  (testing "number = string-length"
    (is (= ["123"] (slices "123" 3)))))

(deftest number<string
  (testing "number < string-length"
    (is (= #{"123" "234" "345"} (set (slices "12345" 3))))))

Version data entries

100 entries across 100 versions & 1 rubygems

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