Public Vars

Back

not-any? (clj)

(source)

variable

(not-any? pred coll)
Returns false if (pred x) is logical true for any x in coll, else true.

Examples

jamesmacaulay/zelkova
(ns jamesmacaulay.async-tools.core-test
  #?(:cljs (:require [jamesmacaulay.async-tools.core :as tools]
                     [cljs.core.async :as async :refer [chan to-chan <! >!]]
                     [cljs.core.async.impl.protocols :as impl]
                     [cemerick.cljs.test :refer-macros (deftest is testing)])
     :clj (:require [jamesmacaulay.async-tools.core :as tools]
                    [clojure.core.async :as async :refer [go chan to-chan <! >!]]
                    [clojure.core.async.impl.protocols :as impl]
                    [jamesmacaulay.async-tools.test :refer (deftest-async)]
                    [clojure.test :refer (deftest is testing)]))
  #?(:cljs (:require-macros [cljs.core.async.macros :refer [go]]
                            [jamesmacaulay.async-tools.test :refer (deftest-async)])))

(deftest readport?-test
  (is (every? tools/readport? [(chan)
                               (async/map< inc (chan))]))
  (is (not-any? tools/readport? [1
                                 "another"
                                 {}])))
fluree/ledger
(ns fluree.db.ledger.docs.identity.auth
  (:require [clojure.test :refer :all]
            [fluree.db.test-helpers :as test]
            [fluree.db.ledger.docs.getting-started.basic-schema :as basic]
            [fluree.db.api :as fdb]
            [fluree.db.api.auth :as fdb-auth]
            [clojure.core.async :as async]
            [clojure.string :as str]))

    ;; Auth cannot view handles
    (is (not-any? #(get % "handle") personRes))))