Skip to content

Instantly share code, notes, and snippets.

@jasalt
Created April 12, 2026 03:03
Show Gist options
  • Select an option

  • Save jasalt/cfd5275918c0f2c2317594c5b1bfb178 to your computer and use it in GitHub Desktop.

Select an option

Save jasalt/cfd5275918c0f2c2317594c5b1bfb178 to your computer and use it in GitHub Desktop.
~~~~~~~~~~
Error in 'validator-fn > always-falsey validator can't initialize atom' (/home/user/dev/phel/clojure-test-suite/test/clojure/core_test/atom.cljc:6)
Test: (thrown? (atom {} :validator (constantly nil)))
threw exception: InvalidArgumentException
~~~~~~~~~~
Error in 'validator-fn > always-falsey validator can't initialize atom' (/home/user/dev/phel/clojure-test-suite/test/clojure/core_test/atom.cljc:6)
Test: (thrown? (atom {} :validator (constantly false)))
threw exception: InvalidArgumentException
~~~~~~~~~~
Error in 'validator-fn > always-falsey validator can't initialize atom' (/home/user/dev/phel/clojure-test-suite/test/clojure/core_test/atom.cljc:6)
Test: (thrown? (atom {} :validator (fn [] (when true (throw (ex-info boom {}))))))
threw exception: InvalidArgumentException
~~~~~~~~~~
Error in 'validator-fn > conditional validators are obeyed at creation, swap! and reset!' (/home/user/dev/phel/clojure-test-suite/test/clojure/core_test/atom.cljc:6)
Test: (thrown? (atom #{} :validator (fn [v] (some string? v))))
threw exception: InvalidArgumentException
~~~~~~~~~~
Error in 'validator-fn > conditional validators are obeyed at creation, swap! and reset!' (/home/user/dev/phel/clojure-test-suite/test/clojure/core_test/atom.cljc:6)
Test: (thrown? (swap! some-strings disj str))
threw exception: InvalidArgumentException
~~~~~~~~~~
Error in 'validator-fn > conditional validators are obeyed at creation, swap! and reset!' (/home/user/dev/phel/clojure-test-suite/test/clojure/core_test/atom.cljc:6)
Test: (thrown? (reset! some-strings #{}))
threw exception: InvalidArgumentException
~~~~~~~~~~
Error in 'validator-fn > conditional validators are obeyed at creation, swap! and reset!' (/home/user/dev/phel/clojure-test-suite/test/clojure/core_test/atom.cljc:6)
Test: (thrown? (reset! some-strings :neither-string-nor-set))
threw exception: InvalidArgumentException
~~~~~~~~~~
Error in 'validator-fn > conditional validators are obeyed at creation, swap! and reset!' (/home/user/dev/phel/clojure-test-suite/test/clojure/core_test/atom.cljc:6)
Test: (thrown? (reset! all-strings :neither-string-nor-set))
threw exception: InvalidArgumentException
~~~~~~~~~~
Error in 'validator-fn > conditional validators are obeyed at creation, swap! and reset!' (/home/user/dev/phel/clojure-test-suite/test/clojure/core_test/atom.cljc:6)
Test: (thrown? (reset! all-strings #{:not-a-string}))
threw exception: InvalidArgumentException
~~~~~~~~~~
Failure in 'metadata and validator function together' (/home/user/dev/phel/clojure-test-suite/test/clojure/core_test/atom.cljc:6)
Test: (get-validator the-atom)
evaluated to: nil
but is not: = to <function:even?>
~~~~~~~~~~
Failure in 'metadata and validator function together' (/home/user/dev/phel/clojure-test-suite/test/clojure/core_test/atom.cljc:6)
Test: (meta the-atom)
evaluated to: nil
but is not: = to {:foo foo}
~~~~~~~~~~
Failure in 'metadata and validator function together' (/home/user/dev/phel/clojure-test-suite/test/clojure/core_test/atom.cljc:6)
Test: (get-validator the-atom2)
evaluated to: nil
but is not: = to <function:even?>
~~~~~~~~~~
Failure in 'metadata and validator function together' (/home/user/dev/phel/clojure-test-suite/test/clojure/core_test/atom.cljc:6)
Test: (meta the-atom2)
evaluated to: nil
but is not: = to {:foo foo}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment