Fork me on GitHub
#testing
<
2018-07-05
>
lumpy21:07:11

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.

lumpy21:07:33

I should add that this is in clojurescript

lumpy21:07:52

str doesn’t seem to work in clojure