testing

Testing tools, testing philosophy & methodology...
lumpy 2018-07-05T21:32:11.000060Z

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.

lumpy 2018-07-05T21:59:33.000020Z

I should add that this is in clojurescript

lumpy 2018-07-05T21:59:52.000198Z

str doesn’t seem to work in clojure