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

test(common/web): unit tests for element-string #12811

Merged

Conversation

markcsinclair
Copy link
Contributor

Unit tests for kmx/kmx-plus/element-string.ts

See #9052

@keymanapp-test-bot skip

@keymanapp-test-bot
Copy link

keymanapp-test-bot bot commented Dec 9, 2024

User Test Results

Test specification and instructions

User tests are not required

@markcsinclair markcsinclair self-assigned this Dec 9, 2024
@keymanapp-test-bot keymanapp-test-bot bot added this to the A18S17 milestone Dec 9, 2024
@github-actions github-actions bot added common/ common/web/ test Any acceptance test issue web/ labels Dec 9, 2024
@markcsinclair markcsinclair added web/ test Any acceptance test issue and removed web/ test Any acceptance test issue labels Dec 9, 2024
@markcsinclair markcsinclair marked this pull request as draft December 9, 2024 11:51
@github-actions github-actions bot added web/ and removed web/ labels Dec 9, 2024
@github-actions github-actions bot added web/ and removed web/ labels Dec 16, 2024
@github-actions github-actions bot added web/ and removed web/ labels Dec 16, 2024
@github-actions github-actions bot added web/ and removed web/ labels Dec 16, 2024
@github-actions github-actions bot added web/ and removed web/ labels Dec 16, 2024
@github-actions github-actions bot added web/ and removed web/ labels Jan 9, 2025
@github-actions github-actions bot added web/ and removed web/ labels Jan 9, 2025
@markcsinclair markcsinclair marked this pull request as ready for review January 9, 2025 14:19
@github-actions github-actions bot added web/ and removed web/ labels Jan 9, 2025
@markcsinclair
Copy link
Contributor Author

Ready for review. Two fixes will be needed to cover the issues addressed by skipped tests.

Comment on lines +361 to +366
const actual = ElementString.fromStrings(sections, "\\ud800\\udf30");
const expected = [
initElemElement(HI_GOTHIC_A),
initElemElement(LO_GOTHIC_A),
];
assert.deepEqual(actual, expected);
Copy link
Member

Choose a reason for hiding this comment

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

this will work here, but is tested for in the keyboard compiler to be avoided ( the \\ud800 and \\udf30 will be rejected)

@srl295
Copy link
Member

srl295 commented Jan 17, 2025

Sorry for the delay! Maybe best to test w/ update before merging

@github-actions github-actions bot added web/ and removed web/ labels Jan 17, 2025
@github-actions github-actions bot added web/ and removed web/ labels Jan 17, 2025
@markcsinclair markcsinclair merged commit 244bb1c into master Jan 17, 2025
3 checks passed
@markcsinclair markcsinclair deleted the test/common/web/types/9052-unit-tests-element-string branch January 17, 2025 12:43
@keyman-server
Copy link
Collaborator

Changes in this pull request will be available for download in Keyman version 18.0.170-alpha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common/web/ common/ test Any acceptance test issue web/
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants