Arc Forumnew | comments | leaders | submitlogin
5 points by zck 1933 days ago | link | parent

Another solution to this would be to have an actual namespace mechanism. For example, this would be the Clojure for a similar test file:

    (ns anarki.foo-tests
      (:require [zck.unit-test :as t]))
    
    (t/suite cut
             (t/test finds-element-in-list
                     (t/assert-same '(3 4 5) (cut '(1 2 3 4 5) 2))))
It's another benefit we'd get by having namespacing.