I’m trying to test a function that returns a function. The function either returns after?
or (complement after?)
. unfortunately it seems whatever is returned by complement
isn’t comparable. and (= (complement after?) (complement after?))
is false. even tho (= after? after?)
is true. I ended up basically doing (= (str (complement after?)) (str (complement after?)))
was wondering if this is the best way to handle this. is there anything I should be aware of where this won’t give me the results I’m looking for. why aren’t the compliments equal.
I should add that this is in clojurescript
str doesn’t seem to work in clojure