-
Notifications
You must be signed in to change notification settings - Fork 17
Multiple spaces are replaced by single spaces in failure message #140
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
Comments
Thanks @erikvanroon for reporting this issue. I can reproduce it easily with your test case. I'm using HTML to handle links in the field. So the content looks in my case as follows (
This HTML code does not preserve whitespace. That's a bug. |
Implementation note:
|
Bugfix #140 - Do not suppress multiple consecutive spaces
When the actual or expected value has multiple consecutive spaces and the test fails, the message on the failures tab shows both values with all multi-spaces replaced by a single one.
(See test script below)
This is annoying because at first I couldn't figure out why a test was failing because the message showed identical strings for actual and expected.
Running the test from SQLcl showed that actual had an extra space which isn't visible in feedback from the plugin.
Test Suite to reproduce
In SQL Developer plugin
Running hese tests the plugin will report on the Failures tab:
Note how all multiple spaces have been replaced by single spaces.
In SQLcl
The text was updated successfully, but these errors were encountered: