• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

basilisp-lang / basilisp / 5970005543
99%

Build:
DEFAULT BRANCH: main
Ran 24 Aug 2023 11:49PM UTC
Jobs 1
Files 42
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 Aug 2023 11:39PM UTC coverage: 99.121%. Remained the same
5970005543

push

github

web-flow
Evalue (is (= exp act)) only once when failing the equality test (#713)

Hi,

could you please review patch to have `(is (= exp act)` evaluate its
argument only once when failing. It fixes #712.

Previously, the arguments were evaluated once in the `when` close, and
then once more in the `:actual` and `:expected` keys.

I haven't introduced a test case, because this issue manifest itself
only when the test fails, which inadvertently will fail the test suite.
Thus I was expecting perhaps you could reason about its behavior for the
review?
(Though now that I think of it, it might be possible to write a test
case for the `gen-assert` multimethod rather than the `is` case which
will fail the test suite)

Here are the result running the same test in #712 with the fix, it only
prints `:5` once as expected this time:
``` clojure
basilisp.user=> (require '[basilisp.test :refer [deftest is]])
nil

basilisp.user=> (deftest issue
                    (is (= 8 (println :5))))
#'basilisp.user/issue

basilisp.user=> (issue)
:5
{:failures [{:actual nil :message "Test failure: (= 8 (println :5))" :test-section nil :type :failure :expr (= 8 (println :5)) :expected 8 :test-name "issue" :line 2}]}
```

Thanks

Co-authored-by: ikappaki <ikappaki@users.noreply.github.com>

1641 of 1643 branches covered (0.0%)

Branch coverage included in aggregate %.

7720 of 7801 relevant lines covered (98.96%)

0.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5970005543.1 24 Aug 2023 11:49PM UTC 0
99.12
GitHub Action Run
Source Files on build 5970005543
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #5970005543
  • 58cff26b on github
  • Prev Build on main (#5955795486)
  • Next Build on main (#6000632053)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc