File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 448448 (t/ assert = (f 3 ) :large)
449449 (t/ assert = (f 4 ) :large)
450450 (t/ assert = (f 9 ) :toolarge)))
451+
452+ (t/ deftest test- instance?
453+ (t/ assert = (instance? Keyword :a) true)
454+ (t/ assert = (instance? Keyword ' a) false)
455+ (t/ assert = (instance? [Symbol Keyword] :a) true)
456+ (t/ assert = (instance? [Symbol Keyword] ' a) true)
457+ (t/ assert = (instance? [Symbol Keyword] 42 ) false)
458+ (t/ assert = (instance? [] :x) false)
459+ (t/ assert - throws? RuntimeException
460+ " c must be a type"
461+ (instance? :not - a- type 123 ))
462+ (t/ assert - throws? RuntimeException
463+ " c must be a type"
464+ (instance? [Keyword :also- not - a- type ] 123 )))
465+
466+ (t/ deftest test- satisfies?
467+ (t/ assert = (satisfies? IIndexed [1 2 ]) true)
468+ (t/ assert = (satisfies? IIndexed ' (1 2)) false)
469+ (t/ assert = (satisfies? [] :xyz) true)
470+ (t/ assert = (satisfies? [ILookup IIndexed] [1 2 ]) true)
471+ (t/ assert = (satisfies? [ILookup IIndexed] {1 2 }) false)
472+ (t/ assert - throws? RuntimeException
473+ " proto must be a Protocol"
474+ (satisfies? :not - a- proto 123 ))
475+ (t/ assert - throws? RuntimeException
476+ " proto must be a Protocol"
477+ (satisfies? [IIndexed :also- not - a- proto] [1 2 ])))
You can’t perform that action at this time.
0 commit comments