Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
frenchy64 committed Jan 30, 2025
1 parent 362b4d0 commit d191c5d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler+runtime/test/bash/clojure.string/pass-test
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
set -xeuo pipefail
jank --module-path src run-main clojure-string.self-test | grep ':success'
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
(ns clojure-test.self-test
(:require [clojure.string :as str]))

(defn -main []
(assert (= "" (str/reverse "")))
(assert (= "tset-a" (str/reverse "a-test" "a")))
(assert (str/starts-with? "" ""))
(assert (str/starts-with? "a-test" "a"))
(assert (not (str/starts-with? "a-test" "b")))
:success)

0 comments on commit d191c5d

Please sign in to comment.