Fork me on GitHub
#cursive
<
2022-02-01
>
Jakub Holý (HolyJak)11:02:19

Is it possible to extend the test diff support to other assertions than (is (= expected actual)) ? Namely to https://cljdoc.org/d/com.github.seancorfield/expectations/ 's (expect expected actual) ? In the terminal it is recommended to use expect with the humane-test-output lib but that does not work in Cursive REPL so I am curious what other options I have. expect is a macro that eventually resolves into (clojure.test/is (=? expected actual)) (where the =? is just a symbol that clj.test understands)

2
cfleming20:02:29

I would like to do this (I think Nubank have a similar lib) but it’s not possible at the moment.

👍 1
😭 1
Dumch14:02:47

do you know if there is a quick way to refactor one type of brackets into another (for example, from (..) to [..] )?

imre14:02:24

yep, Cycle Collection Type or something like that is the name of the action

🙏 3
Jakub Holý (HolyJak)17:02:33

Awesome! I had not idea that was possible. Thx!

folcon16:02:46

Is there a function that does its let bindings on the second argument? I'm trying to find an appropriate target for symbol resolution... The below is getting a little annoying 😃...

imre16:02:17

or fn for that matter

imre16:02:48

fn is probably better as it doesn't put anything into the global scope

folcon19:02:15

yep, not sure why that didn't occur to me 😳, thanks

imre19:02:14

did it work? I haven't tried it

imre19:02:00

although the binding form is different to that of a fn now that I look at it

folcon19:02:32

I went with defn in the end

folcon19:02:45

It's "good enough" for now...

imre20:02:01

nm, glad I could help

staypufd06:02:33

What UI lib are you using?