Title: Multiple spaces are replaced by single spaces in failure message · Issue #140 · utPLSQL/utPLSQL-SQLDeveloper · GitHub
Open Graph Title: Multiple spaces are replaced by single spaces in failure message · Issue #140 · utPLSQL/utPLSQL-SQLDeveloper
X Title: Multiple spaces are replaced by single spaces in failure message · Issue #140 · utPLSQL/utPLSQL-SQLDeveloper
Description: 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 f...
Open Graph Description: 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 scr...
X Description: 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 scr...
Opengraph URL: https://github.com/utPLSQL/utPLSQL-SQLDeveloper/issues/140
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Multiple spaces are replaced by single spaces in failure message","articleBody":"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.\r\n(See test script below)\r\n\r\nThis 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.\r\nRunning the test from SQLcl showed that actual had an extra space which isn't visible in feedback from the plugin.\r\n\r\n**Test Suite to reproduce**\r\n```\r\ncreate or replace package ut_spaces\r\nauthid definer\r\nis\r\n -- %suite(Test Plugin Output)\r\n\r\n -- %context(Multiple spaces in values)\r\n\r\n -- %test(Multiple spaces in actual)\r\n procedure multi_space_actual;\r\n\r\n -- %test(Multiple spaces in expect)\r\n procedure multi_space_expect;\r\n\r\n -- %endcontext\r\n\r\nend ut_spaces;\r\n/\r\n\r\ncreate or replace package body ut_spaces\r\nis\r\n\r\n -- Multiple spaces in actual\r\n procedure multi_space_actual\r\n is\r\n l_expect varchar2(100);\r\n l_actual varchar2(100);\r\n begin\r\n l_expect := 'This line has spaces';\r\n l_actual := 'This line has spaces';\r\n\r\n ut.expect(l_actual).to_equal(l_expect);\r\n end;\r\n\r\n\r\n -- Multiple spaces in expect\r\n procedure multi_space_expect\r\n is\r\n l_expect varchar2(100);\r\n l_actual varchar2(100);\r\n begin\r\n l_expect := 'This line has spaces';\r\n l_actual := 'This line has spaces';\r\n\r\n ut.expect(l_actual).to_equal(l_expect);\r\n end;\r\n\r\nend ut_spaces;\r\n/\r\n```\r\n\r\n**In SQL Developer plugin**\r\nRunning hese tests the plugin will report on the Failures tab:\r\n```\r\nActual: 'This line has spaces' (varchar2) was expected to equal: 'This line has spaces' (varchar2)\r\nat \"ERO.UT_SPACES.MULTI_SPACE_ACTUAL\", line 13 ut.expect(l_actual).to_equal(l_expect);\r\n```\r\n\r\nNote how all multiple spaces have been replaced by single spaces.\r\n\r\n**In SQLcl**\r\n```\r\nRunning the tests in SQLcl does show the multiple spaces\r\nERO@EVROCS\u003eexec ut.run ('ut_spaces')\r\nTest Plugin Output\r\n Multiple spaces in values\r\n Multiple spaces in actual [,481 sec] (FAILED - 1)\r\n Multiple spaces in expect [,004 sec] (FAILED - 2)\r\n\r\nFailures:\r\n\r\n 1) multi_space_actual\r\n Actual: 'This line has spaces' (varchar2) was expected to equal: 'This line has spaces' (varchar2)\r\n at \"ERO.UT_SPACES.MULTI_SPACE_ACTUAL\", line 13 ut.expect(l_actual).to_equal(l_expect);\r\n\r\n 2) multi_space_expect\r\n Actual: 'This line has spaces' (varchar2) was expected to equal: 'This line has spaces' (varchar2)\r\n at \"ERO.UT_SPACES.MULTI_SPACE_EXPECT\", line 26 ut.expect(l_actual).to_equal(l_expect);\r\n\r\nFinished in ,487971 seconds\r\n2 tests, 2 failed, 0 errored, 0 disabled, 0 warning(s)\r\n\r\n\r\nPL/SQL procedure successfully completed.\r\n```\r\n\r\n","author":{"url":"https://github.com/erikvanroon","@type":"Person","name":"erikvanroon"},"datePublished":"2022-01-06T10:58:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/140/utPLSQL-SQLDeveloper/issues/140"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:82fcf882-ff0e-6887-1b42-d35ff5ee867c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8608:1CC3CE:1C29B1D:277B8A9:69692E3D |
| html-safe-nonce | bab23ec51afd461e985cf70fc795b2dfce455909c181ebb76ba2f431f97fac20 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjA4OjFDQzNDRToxQzI5QjFEOjI3N0I4QTk6Njk2OTJFM0QiLCJ2aXNpdG9yX2lkIjoiMzg2MTAzMDA1NzMxNTc0MTI0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2b9abb36ac59d9eda3b666ecba0e5e9e2ad386b07609ccefe559ff5462985c32 |
| hovercard-subject-tag | issue:1095202988 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/utPLSQL/utPLSQL-SQLDeveloper/140/issue_layout |
| twitter:image | https://opengraph.githubassets.com/69ba40e10cd768e8b162ca387e44855ad7a0bd64ed5496efa13f5570b19e76db/utPLSQL/utPLSQL-SQLDeveloper/issues/140 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/69ba40e10cd768e8b162ca387e44855ad7a0bd64ed5496efa13f5570b19e76db/utPLSQL/utPLSQL-SQLDeveloper/issues/140 |
| og:image:alt | 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 scr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | erikvanroon |
| hostname | github.com |
| expected-hostname | github.com |
| None | 54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d |
| turbo-cache-control | no-preview |
| go-import | github.com/utPLSQL/utPLSQL-SQLDeveloper git https://github.com/utPLSQL/utPLSQL-SQLDeveloper.git |
| octolytics-dimension-user_id | 15661281 |
| octolytics-dimension-user_login | utPLSQL |
| octolytics-dimension-repository_id | 111097428 |
| octolytics-dimension-repository_nwo | utPLSQL/utPLSQL-SQLDeveloper |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 111097428 |
| octolytics-dimension-repository_network_root_nwo | utPLSQL/utPLSQL-SQLDeveloper |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d69ac0477df0f87da03b8b06cebd187012d7a930 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width