Skip to content

Add tests for emoji detection#91

Open
LeanBitLab wants to merge 2 commits intomainfrom
add-emoji-detection-tests-7708604300233834285
Open

Add tests for emoji detection#91
LeanBitLab wants to merge 2 commits intomainfrom
add-emoji-detection-tests-7708604300233834285

Conversation

@LeanBitLab
Copy link
Copy Markdown
Owner

Added tests for emoji detection as requested in issue #22.
Iterating through the emojis asset list ensures all emojis are processed correctly. Fixing mightBeEmoji boundary condition ensures the test passes for specific emojis (e.g. Mahjong tile and Joker card) previously excluded.


PR created automatically by Jules for task 7708604300233834285 started by @LeanBitLab

- Added `testGetFullEmojiAtEndWithAllAvailableEmojis` to `StringUtilsTest.kt` to iterate over all emojis in assets and verify detection.
- Fixed `StringUtils.mightBeEmoji` to include Mahjong Tiles and Symbols and Pictographs Extended-A blocks correctly (starting at 0x1F004 instead of 0x1F104) so `🀄` and `🃏` are recognized.
- Removed todo comment in `isEmojiDetectsAllAvailableEmojis` since these emojis are now correctly identified.
- Addressed `todo` about adding emoji detection tests.
@google-labs-jules
Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

- Added `testGetFullEmojiAtEndWithAllAvailableEmojis` to `StringUtilsTest.kt` to iterate over all emojis in assets and verify detection.
- Fixed `StringUtils.mightBeEmoji` to include Mahjong Tiles and Symbols and Pictographs Extended-A blocks correctly (starting at 0x1F004 instead of 0x1F104) so `🀄` and `🃏` are recognized.
- Removed todo comment in `isEmojiDetectsAllAvailableEmojis` since these emojis are now correctly identified.
- Addressed `todo` about adding emoji detection tests.
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.

1 participant