Login
7 branches 0 tags
Ben (X13/Arch) Simplified things a little 0643405 9 days ago 1260 Commits
nujel / tests / testsuite / string.nuj
(888 (-> (range 200)
         (map :string)
         (join ", ")
         (:length)))
(2328731233 (import (hash) :crypto/adler32)
            (-> (range 200)
                (map :string)
                (join ", ")
                hash))
(1091 (-> (range 200)
          (map :string)
          string/write
          :length))
("" (:cut "\n" 1 1))
("" (:cut "\n" 1 -1))
("" (:cut "Hallo, Welt!" 0 -5))
("" (:cut "Hallo, Welt!" 15 5))
("Hallo" (:cut "Hallo, Welt!" 0 5))
("Welt" (:cut "Hallo, Welt!" 7 11))
("" (:cut "asd" 0 -1))
("a" (:cut "asd" -10 1))
("a" (:cut "asd" 0 1))
("s" (:cut "asd" 1 2))
("sd" (:cut "asd" 1 3))
("d" (:cut "asd" 2 3))
(""  (:cut "asd" 3 4))
(7 (:index-of "Dies ist ein Test" "t"))
(16 (:last-index-of "Dies ist ein Test" "t"))
(1 (:index-of "1,2,3" ","))
(0 (:index-of "1,2,3" "1"))
(-1 (:index-of "1,2,3" "0"))
(2 (:index-of "1,2,3" "2"))
(4 (:index-of "1,2,3" "3"))
(3 (:last-index-of "1,2,3" ","))
(0 (:last-index-of "1,2,3" "1"))
(-1 (:last-index-of "1,2,3" "4"))
(2 (:last-index-of "1,2,3" "2"))
(4 (:last-index-of "1,2,3" "3"))