Skip to content

Add two to four bytes utf8 character tests#2495

Merged
dcodeIO merged 10 commits intoAssemblyScript:mainfrom
JesseCodeBones:Add_tests_for_utf8_variables
Sep 26, 2022
Merged

Add two to four bytes utf8 character tests#2495
dcodeIO merged 10 commits intoAssemblyScript:mainfrom
JesseCodeBones:Add_tests_for_utf8_variables

Conversation

@JesseCodeBones
Copy link
Copy Markdown
Contributor

Currently the repo missed the tests for 2 bytes utf-8 character, 3 bytes utf-8 character and 4 bytes utf-8 character (4 bytes utf-8 character cannot bypass the parser phase, not sure if it is by design, for example charactor: 𝆑).

This PR attampts to add tests for global parameter name with utf-8 character, 3 bytes utf-8 character, AS will call allocString and alloc this utf-8 string to binary.
image

  • I've read the contributing guidelines
  • I've added my name and email to the NOTICE file

@dcodeIO
Copy link
Copy Markdown
Member

dcodeIO commented Sep 25, 2022

Regarding the 4-byte character problem, see #2522.

@dcodeIO dcodeIO changed the title Add two bytes and three bytes utf8 character tests for allocString Add two to four bytes utf8 character tests Sep 26, 2022
@dcodeIO dcodeIO merged commit 0ed65eb into AssemblyScript:main Sep 26, 2022
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.

2 participants