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

Fix builds on macOS #194

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Fix builds on macOS #194

merged 1 commit into from
Jun 5, 2024

Conversation

lyonsil
Copy link
Contributor

@lyonsil lyonsil commented Jun 3, 2024

This resolves a number of problems with using icu-dotnet on macOS. It helps with a number of issues found in paranext/paranext-core#264.

This change adds macOS to the github builds so that future breaks should be caught by normal CI/CD workflows.

Copy link

github-actions bot commented Jun 3, 2024

Test Results

       4 files  +    1     322 suites  +81   5s ⏱️ -2s
   431 tests ±    0     427 ✔️ +    4    4 💤  -   4  0 ±0 
1 751 runs  +442  1 680 ✔️ +426  71 💤 +16  0 ±0 

Results for commit c6328e6. ± Comparison against base commit 5979f1c.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@hahn-kev hahn-kev left a comment

Choose a reason for hiding this comment

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

awesome! I'm excited to see work done to make sure this works on all platforms

source/icu.net.tests/icu.net.tests.csproj Outdated Show resolved Hide resolved
@lyonsil lyonsil merged commit 0342df4 into sillsdev:master Jun 5, 2024
6 checks passed
Comment on lines +54 to +56
[TestCase("en_US", ExpectedResult = "[abcdefghijklmnopqrstuvwxyz]")]
[TestCase("de_DE", ExpectedResult = "[aäbcdefghijklmnoöpqrsßtuüvwxyz]")]
[TestCase("fr_FR", ExpectedResult = "[aàâæbcçdeéèêëfghiîïjklmnoôœpqrstuùûüvwxyÿz]")]
Copy link

Choose a reason for hiding this comment

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

this is locale data so of course it could change or be reformatted.

If you have ICU here, you could actually parse it into a UnicodeSet and do a comparison there.

Copy link

Choose a reason for hiding this comment

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

substring containment might be a quicker option.. i.e. make sure that english contains a, b, z, German contains ß etc.

Copy link

@srl295 srl295 left a comment

Choose a reason for hiding this comment

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

post merge lgtm

@imnasnainaec imnasnainaec mentioned this pull request Aug 12, 2024
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.

5 participants