Skip to content

Add unicode char tests#904

Merged
jeaye merged 2 commits into
jank-lang:mainfrom
E-A-Griffin:egriffin/unicode-char-tests
Jun 3, 2026
Merged

Add unicode char tests#904
jeaye merged 2 commits into
jank-lang:mainfrom
E-A-Griffin:egriffin/unicode-char-tests

Conversation

@E-A-Griffin
Copy link
Copy Markdown
Collaborator

This closes #799

(is #?(:lpy (not (p/lazy-seq? s))
:default (p/lazy-seq? s)))
(is #?(:lpy true
:default (not (realized? s))))
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These were failing for me locally and annoying me so just fixed them as part of this work, can separate this to a different PR if need be

Copy link
Copy Markdown
Contributor

@chrisrink10 chrisrink10 Jun 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix for this was already merged into Basilisp's main branch, so you probably are not on the latest commit.

In the future, I would prefer if you either made sure you were up to date or just didn't run the tests locally at all.

cc @jeaye

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, yeah. Thanks for trying to keep up on the different dialects, Emma. It's too much to juggle, though, so we should just focus on the CI jobs that we're running and let dialect devs deal with everything else.

(is (= \ষ (char 2487))))
(testing "4+ byte characters throw"
(is #?(:jank (= (first "𐅦") (char 65895))
;; this seems to be an off by one error
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a Basilisp bug? Shall we ping Chris?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like it

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chrisrink10 heads up.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function delegates directly to Python chr. Are you sure Basilisp is the one in error?

@jeaye jeaye merged commit 162f7de into jank-lang:main Jun 3, 2026
5 checks passed
@jeaye
Copy link
Copy Markdown
Member

jeaye commented Jun 3, 2026

Thanks, Emma!

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.

Add Unicode Test Cases to clojure.core-test.char

3 participants