Fork me on GitHub
#babashka
<
2020-04-22
>
borkdude09:04:09

Fun, this library for testing docstrings with clojure.test now works with babashka: https://github.com/liquidz/testdoc - thanks @liquidz.uo

borkdude09:04:41

$ export BABASHKA_CLASSPATH=$(clojure -Sdeps '{:deps {testdoc {:mvn/version "1.2.0"}}}' -Spath)
$ bb '(ns foo (:use clojure.test testdoc.core))
(defn foo "
  => (foo)
  :foox"
  [] :foo)

(deftest footest
  (is (testdoc (var foo))))

(test-var (var footest))'

FAIL in (footest) (:1)
(= (foo) :foox)
expected: :foox
  actual: :foo

jeroenvandijk13:04:46

I’m dropping a wild idea here, just in case someone is looking for ideas. Would be cool to have a browser extension that reacts to clojure: (js/alert “fooo”) (similar to how javascript works with javascript:alert("foo") . Based on [1] it might actually be an option to do this and be able to have Sci bookmarklets. [1] https://developer.chrome.com/extensions/match_patterns

borkdude13:04:30

Wrote a script to turn a directory of .mp3 files (think: a downloaded Clojure conference videos as .mp3 audio tracks) into a podcast. https://github.com/borkdude/generate-podcast