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