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

basilisp-lang / basilisp / 5927053952
99%

Build:
DEFAULT BRANCH: main
Ran 21 Aug 2023 01:50PM UTC
Jobs 1
Files 42
Run time 3s
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

21 Aug 2023 01:40PM UTC coverage: 99.151% (-0.008%) from 99.159%
5927053952

push

github

web-flow
Support sort-by maps and boolean comparison fns. (#709)

Hi,

could you please review update to support sorting maps with `sort-by`,
and also accepting boolean comparator fns in the same. It partly
addresses #708.

Basically, maps were delegating sorting to the immutables libraries,
which returns the keys of the maps when sorting; this patch converts
them into a sequence of key/value pairs, which is what Clojure uses to
return the result.

Boolean comparators were not working and are now converted to 3 way
comparator using the new `_fn_to_comparator` fn.

Since now the sorting is done on key/value vector pairs, it came to my
attention that the `vector.__lt__` which the sorting is delegating to,
was not working as expected, and thus updated to work according to how
Clojure thinks about vector comparison.

I've added test for all of the above.

I haven't touched `sort` much yet, wanted first to discuss this patch
first.

Thanks

---------

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

1641 of 1643 branches covered (99.88%)

Branch coverage included in aggregate %.

41 of 41 new or added lines in 2 files covered. (100.0%)

7707 of 7785 relevant lines covered (99.0%)

0.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5927053952.1 21 Aug 2023 01:50PM UTC 0
99.15
GitHub Action Run
Source Files on build 5927053952
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #5927053952
  • 403bff76 on github
  • Prev Build on main (#5906656159)
  • Next Build on main (#5955795486)
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