Fork me on GitHub
#matcher-combinators
<
2024-04-16
David G16:04:42

Hi, I was wondering if there's a setting I can turn on so that match? plays nicely with CIDER. In spacemacs I get this output for this test:

(deftest foo
  (is (match? "abc" "def")))
Then , t t on it (run the test), inside the test output buffer:
Test Summary
api.api-test 1 ms
  foo 1 ms

Tested 1 namespaces in 1 ms
Ran 1 assertions, in 1 test functions
1 failures
cider-test-fail-fast: t


Results

api.api-test
1 non-passing tests:

Fail in foo

expected: (match? "abc" "def")
  actual: (mismatch (expected abc) (actual def))          ;; <--- missing string quotes

2
onetom07:04:16

i just evaled the is part and i got double quotes

(is (match? "abc" "def"))

FAIL in () (xero_test.clj:366)
expected: (match? "abc" "def")
  actual: (mismatch (expected "abc") (actual "def"))

=> false
it's probably because some of our customizations...

David G07:04:53

I'll try to eval too, my example is from a cider run test command rather than a test eval