Skip to content

chore(stdlib): Use byte literals to test String.encode#2363

Merged
ospencer merged 1 commit intograin-lang:mainfrom
pixilcode:main
Mar 1, 2026
Merged

chore(stdlib): Use byte literals to test String.encode#2363
ospencer merged 1 commit intograin-lang:mainfrom
pixilcode:main

Conversation

@pixilcode
Copy link
Contributor

Compare the output of String.encode directly to byte literals, rather than using processBytes to compare to an array of bytes.

Resolves #2362 .

@ospencer
Copy link
Member

Looks great! I approved the CI to run and as long as that's set this is good to go.

Copy link
Member

@spotandjake spotandjake left a comment

Choose a reason for hiding this comment

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

Code itself looks good to me, though I think you may need to run the formatter on the file.

grain format ./compiler/test/stdlib/string.test.gr -o ./compiler/test/stdlib/string.test.gr

@pixilcode
Copy link
Contributor Author

Okay, sweet! I ran the formatter and updated the code.

Copy link
Member

@ospencer ospencer left a comment

Choose a reason for hiding this comment

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

Thanks so much!

@ospencer ospencer added this pull request to the merge queue Mar 1, 2026
Merged via the queue into grain-lang:main with commit 461e182 Mar 1, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Testing: Make byte tests in string.test.gr use byte literals

3 participants