GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||
GeezerVison is showing github.com — Add `doesNot[Start/End]WithWhitespace` methods to `CharSequence` assertions by yyytir777 · Pull Request #3441 · assertj/assertj Conversation
Contributor
Check List:
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
Can't we use CharSequence#codePoints()? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for better method. I'll fix it right now. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@onacit why would using code points be better than char to detect whitespaces ? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@joel-costigliola As documented in Character.isWhitespace(char), it'll, I think, be better when we use codePoints.
Thanks. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Best would be to compose a test that demonstrates the need for The test would also prevent regressions if we changed the implementation to Taking inspiration from https://stackoverflow.com/a/18169122/9714611, maybe a value from this list could help? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'm on it @scordio ! @yyytir777 you'll get full credit for the PR don't worry :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Integrated thanks @yyytir777 ! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
doesNot[Start/End]WithWhitespace methods to CharSequence assertions
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Add AbstractCharSequenceAssert#doesNotHaveAny(Leading|Trailing)Whitespaces
There was an error while loading. Please reload this page.