René's URL Explorer Experiment


Title: Actual reported as expected and vice versa for `JSON_ELEMENT_T` · Issue #1113 · utPLSQL/utPLSQL · GitHub

Open Graph Title: Actual reported as expected and vice versa for `JSON_ELEMENT_T` · Issue #1113 · utPLSQL/utPLSQL

X Title: Actual reported as expected and vice versa for `JSON_ELEMENT_T` · Issue #1113 · utPLSQL/utPLSQL

Description: Describe the bug When comparing a JSON_ELEMENT_T value the actual value is reported as expected and the expected value as actual. The following example was taken from http://utplsql.org/utPLSQL/latest/userguide/expectations.html: begin u...

Open Graph Description: Describe the bug When comparing a JSON_ELEMENT_T value the actual value is reported as expected and the expected value as actual. The following example was taken from http://utplsql.org/utPLSQL/lat...

X Description: Describe the bug When comparing a JSON_ELEMENT_T value the actual value is reported as expected and the expected value as actual. The following example was taken from http://utplsql.org/utPLSQL/lat...

Opengraph URL: https://github.com/utPLSQL/utPLSQL/issues/1113

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Actual reported as expected and vice versa for `JSON_ELEMENT_T`","articleBody":"## Describe the bug\r\nWhen comparing a `JSON_ELEMENT_T` value the actual value is reported as expected and the expected value as actual.\r\n\r\nThe following example was taken from http://utplsql.org/utPLSQL/latest/userguide/expectations.html:\r\n\r\n```sql\r\nbegin\r\n  ut.expect( 'the tested value' ).to_equal('the expected value');\r\nend;\r\n/\r\n```\r\n\r\nThe first value is the actual value and the second one is the expected value. This should be true regardless of the compared data type.\r\n\r\n## Provide version info\r\n\r\n```\r\n21.0.0.0.0\r\n20.0.0\r\n\r\n\r\nPL/SQL procedure successfully completed.\r\n\r\n\r\nUT_VERSION                                                  \r\n------------------------------------------------------------\r\nv3.1.11.3466-develop\r\n\r\n\r\nBANNER                                                                           BANNER_FULL                                                                                                                                                      BANNER_LEGACY                                                                        CON_ID\r\n-------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ----------\r\nOracle Database 21c Enterprise Edition Release 21.0.0.0.0 - Production           Oracle Database 21c Enterprise Edition Release 21.0.0.0.0 - Production                                                                                           Oracle Database 21c Enterprise Edition Release 21.0.0.0.0 - Production                    0\r\n                                                                                 Version 21.1.0.0.0                                                                                                                                                                                                                                          \r\n\r\n\r\n\r\nPARAMETER                      VALUE                                                           \r\n------------------------------ ----------------------------------------------------------------\r\nNLS_LANGUAGE                   AMERICAN                                                        \r\nNLS_TERRITORY                  AMERICA                                                         \r\nNLS_CURRENCY                   $                                                               \r\nNLS_ISO_CURRENCY               AMERICA                                                         \r\nNLS_NUMERIC_CHARACTERS         .,                                                              \r\nNLS_CALENDAR                   GREGORIAN                                                       \r\nNLS_DATE_FORMAT                DD.MM.YYYY                                                      \r\nNLS_DATE_LANGUAGE              AMERICAN                                                        \r\nNLS_SORT                       BINARY                                                          \r\nNLS_TIME_FORMAT                HH.MI.SSXFF AM                                                  \r\nNLS_TIMESTAMP_FORMAT           DD.MM.YYYY HH24:MI:SSXFF                                        \r\nNLS_TIME_TZ_FORMAT             HH.MI.SSXFF AM TZR                                              \r\nNLS_TIMESTAMP_TZ_FORMAT        DD.MM.YYYY HH24:MI:SSXFF TZR                                    \r\nNLS_DUAL_CURRENCY              $                                                               \r\nNLS_COMP                       BINARY                                                          \r\nNLS_LENGTH_SEMANTICS           BYTE                                                            \r\nNLS_NCHAR_CONV_EXCP            FALSE                                                           \r\n\r\n17 rows selected. \r\n\r\n\r\nPORT_STRING                                                 \r\n------------------------------------------------------------\r\nx86_64/Linux 2.4.xx\r\n```\r\n\r\n## Information about client software\r\n\r\nSQL Developer 20.2.0\r\n\r\n## To Reproduce\r\n\r\n### 1. Compare JSON_ELEMENT_T\r\n\r\nRun this code\r\n\r\n```sql\r\nset serveroutput on\r\nbegin\r\n   ut.expect(json_element_t.parse('{\"a\":\"value a\"}'))\r\n      .to_equal(json_element_t.parse('{\"a\":\"value b\"}'));\r\nend;\r\n/\r\n```\r\n\r\nthe output is\r\n\r\n```\r\nFAILURE\r\n  Actual: json was expected to equal: json\r\n  Diff: 1 differences found\r\n  1 unequal values\r\n    Actual value: \"value b\" was expected to be: \"value a\" on path: $.\"a\"\r\n  at \"anonymous block\", line 2\r\n\r\n\r\nPL/SQL procedure successfully completed.\r\n```\r\n\r\n`value a` is reported as expected. That's wrong.\r\n\r\n### 2. Compare VARCHAR2 \r\n\r\nRun this code\r\n\r\n```sql\r\nset serveroutput on\r\nbegin\r\n   ut.expect('value a').to_equal('value b');\r\nend;\r\n/\r\n```\r\n\r\nthe output is\r\n\r\n```\r\nFAILURE\r\n  Actual: 'value a' (varchar2) was expected to equal: 'value b' (varchar2)\r\n  at \"anonymous block\", line 2\r\n\r\n\r\nPL/SQL procedure successfully completed.\r\n```\r\n\r\n`value b` is reported as expected. That's correct. \r\n\r\n## Expected behavior\r\n\r\nWhen comparing a `JSON_ELEMENT_T` report expected and actual values as for other data types (e.g. `NUMBER` or `VARCHAR2`).\r\n","author":{"url":"https://github.com/PhilippSalvisberg","@type":"Person","name":"PhilippSalvisberg"},"datePublished":"2020-12-13T12:25:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1113/utPLSQL/issues/1113"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1d74e4d2-4565-3f0c-e61e-cd66ed9a2609
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB946:93E78:84582E:88552D:6A638346
html-safe-nonce6a1764d5149b435a0cd37015f6f0815317655ada420f0701c80002eab73ab3cc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTQ2OjkzRTc4Ojg0NTgyRTo4ODU1MkQ6NkE2MzgzNDYiLCJ2aXNpdG9yX2lkIjoiNzI1ODY5OTgzMzg5MzE1OTc1MCIsInJlZ2lvbl9lZGdlIjoic2VhIiwicmVnaW9uX3JlbmRlciI6InNlYSJ9
visitor-hmac43db4a22d02ed127012adb97c5b1d74c3f4ff0f5ca45278a4862e07bb6ad6c7c
hovercard-subject-tagissue:765344472
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/utPLSQL/utPLSQL/1113/issue_layout
twitter:imagehttps://opengraph.githubassets.com/da38fe4255e5a95eb49a2509e9b9f6a540aacb53df1f0a58c861099c860d17ff/utPLSQL/utPLSQL/issues/1113
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/da38fe4255e5a95eb49a2509e9b9f6a540aacb53df1f0a58c861099c860d17ff/utPLSQL/utPLSQL/issues/1113
og:image:altDescribe the bug When comparing a JSON_ELEMENT_T value the actual value is reported as expected and the expected value as actual. The following example was taken from http://utplsql.org/utPLSQL/lat...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamePhilippSalvisberg
hostnamegithub.com
expected-hostnamegithub.com
Nonee4fb64aef87da454ec25b158147f7f5f14aef29216e5ca1612c2e48faa599d1f
turbo-cache-controlno-preview
go-importgithub.com/utPLSQL/utPLSQL git https://github.com/utPLSQL/utPLSQL.git
octolytics-dimension-user_id15661281
octolytics-dimension-user_loginutPLSQL
octolytics-dimension-repository_id50728220
octolytics-dimension-repository_nwoutPLSQL/utPLSQL
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id50728220
octolytics-dimension-repository_network_root_nwoutPLSQL/utPLSQL
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee839936ba5faffb9c836dda1cf4729d50c88a32e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/utPLSQL/utPLSQL/issues/1113#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FutPLSQL%2FutPLSQL%2Fissues%2F1113
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FutPLSQL%2FutPLSQL%2Fissues%2F1113
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=utPLSQL%2FutPLSQL
Reloadhttps://github.com/utPLSQL/utPLSQL/issues/1113
Reloadhttps://github.com/utPLSQL/utPLSQL/issues/1113
Reloadhttps://github.com/utPLSQL/utPLSQL/issues/1113
Please reload this pagehttps://github.com/utPLSQL/utPLSQL/issues/1113
utPLSQL https://github.com/utPLSQL
utPLSQLhttps://github.com/utPLSQL/utPLSQL
Notifications https://github.com/login?return_to=%2FutPLSQL%2FutPLSQL
Fork 188 https://github.com/login?return_to=%2FutPLSQL%2FutPLSQL
Star 619 https://github.com/login?return_to=%2FutPLSQL%2FutPLSQL
Code https://github.com/utPLSQL/utPLSQL
Issues 12 https://github.com/utPLSQL/utPLSQL/issues
Pull requests 0 https://github.com/utPLSQL/utPLSQL/pulls
Discussions https://github.com/utPLSQL/utPLSQL/discussions
Actions https://github.com/utPLSQL/utPLSQL/actions
Projects https://github.com/utPLSQL/utPLSQL/projects
Security and quality 0 https://github.com/utPLSQL/utPLSQL/security
Insights https://github.com/utPLSQL/utPLSQL/pulse
Code https://github.com/utPLSQL/utPLSQL
Issues https://github.com/utPLSQL/utPLSQL/issues
Pull requests https://github.com/utPLSQL/utPLSQL/pulls
Discussions https://github.com/utPLSQL/utPLSQL/discussions
Actions https://github.com/utPLSQL/utPLSQL/actions
Projects https://github.com/utPLSQL/utPLSQL/projects
Security and quality https://github.com/utPLSQL/utPLSQL/security
Insights https://github.com/utPLSQL/utPLSQL/pulse
#1181https://github.com/utPLSQL/utPLSQL/pull/1181
Actual reported as expected and vice versa for JSON_ELEMENT_Thttps://github.com/utPLSQL/utPLSQL/issues/1113#top
#1181https://github.com/utPLSQL/utPLSQL/pull/1181
https://github.com/lwasylow
bughttps://github.com/utPLSQL/utPLSQL/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/PhilippSalvisberg
PhilippSalvisberghttps://github.com/PhilippSalvisberg
on Dec 13, 2020https://github.com/utPLSQL/utPLSQL/issues/1113#issue-765344472
http://utplsql.org/utPLSQL/latest/userguide/expectations.htmlhttp://utplsql.org/utPLSQL/latest/userguide/expectations.html
lwasylowhttps://github.com/lwasylow
bughttps://github.com/utPLSQL/utPLSQL/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.