Skip to content
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

Update to Unicode v16.0.0 #92

Merged
merged 2 commits into from
Sep 18, 2024
Merged

Update to Unicode v16.0.0 #92

merged 2 commits into from
Sep 18, 2024

Conversation

mathiasbynens
Copy link
Owner

test/fixtures must be rebaselined before this can be merged.

@JLHwung Do you remember how you did this for #84? Maybe we should check in a “rebaseline test fixtures” script to more easily update expectations as part of future Unicode updates.

@mathiasbynens mathiasbynens changed the title Update to Unicode v16.0.0 [DO NOT MERGE YET] Update to Unicode v16.0.0 Sep 12, 2024
@JLHwung
Copy link
Collaborator

JLHwung commented Sep 12, 2024

I recall that I manually paste the emoji results into the fixtures and it was not very smooth. Yes, a "rebaseline test fixtures" script will definitely help the situation.

I am wondering why the test is even passing on node.js 6. Apparently unicode tests are skipped in node.js 6.

@@ -2,10 +2,25 @@ const TRANSFORM_U = { unicodeFlag: 'transform', unicodeSetsFlag: 'transform' };

const Basic_Emoji = {
get all() { return `${this.strings}|[${this.chars}]` },
// node -e "process.stdout.write(require('regenerate-unicode-properties/Property_of_Strings/Basic_Emoji').strings.sort((a,b)=>b.length-a.length).join('|'))"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Provided node oneliners to update the test fixtures. Personally I piped the result to pbcopy and paste directly in the IDE. At least we can do it semi-manually.

We also restructured the RGI_Emoji tests so that we can easily update the result every year.

@JLHwung JLHwung changed the title [DO NOT MERGE YET] Update to Unicode v16.0.0 Update to Unicode v16.0.0 Sep 17, 2024
@JLHwung
Copy link
Collaborator

JLHwung commented Sep 18, 2024

@mathiasbynens This PR is ready to review now.

@JLHwung JLHwung mentioned this pull request Sep 18, 2024
@mathiasbynens mathiasbynens merged commit c74aa34 into main Sep 18, 2024
3 checks passed
@mathiasbynens mathiasbynens deleted the unicode-16.0.0 branch September 18, 2024 15:53
@mathiasbynens
Copy link
Owner Author

Thanks @JLHwung!

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