Skip to content

Fix sort and sort-by for most basic cases. #74

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

ingydotnet
Copy link
Contributor

There are still cases that fail, and some disabled tests for those.
But this is a big usability win, imho.

@ingydotnet ingydotnet requested a review from jfhamlin as a code owner July 26, 2025 22:45
After this patch:

$ ./bin/linux_amd64/glj test/glojure/test_glojure/numbers.glj

Testing glojure.test-glojure.numbers

Ran 42 tests containing 2744 assertions.
0 failures, 0 errors.

Before this patch:

$ ./bin/linux_amd64/glj test/glojure/test_glojure/numbers.glj

Testing glojure.test-glojure.numbers

FAIL in (nil) (:)
expected: (= vals (map wrapped inputs))
  actual: (not (= [\� \ \ \ \� \� \� \� \�] (\� \ \ \ \� \� \� \ \)))

FAIL in (nil) (:)
expected: (= vals (map wrapped inputs))
  actual: (not (= [255 0 1 127 255 255 255 255 255] (255 0 1 127 255 255 255 0 0)))

FAIL in (nil) (:)
expected: (= vals (map wrapped inputs))
  actual: (not (= [-1 0 1 127 32767 -1 -1 -1 -1] (-1 0 1 127 32767 -1 -1 0 0)))

FAIL in (nil) (:)
expected: (= vals (map wrapped inputs))
  actual: (not (= [-1 0 1 127 32767 2147483647 9223372036854775807 9223372036854775807 9223372036854775807] (-1 0 1 127 32767 2147483647 9223372036854775807 -9223372036854775808 -9223372036854775808)))

FAIL in (nil) (:)
expected: (= vals (map wrapped inputs))
  actual: (not (= [-1 0 1 127 32767 2147483647 9223372036854775807 9223372036854775807 9223372036854775807] (-1 0 1 127 32767 2147483647 9223372036854775807 -9223372036854775808 -9223372036854775808)))

Ran 42 tests containing 2744 assertions.
5 failures, 0 errors.
@ingydotnet
Copy link
Contributor Author

Fixes #66 and replaces #69 draft.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant