Title: Can we make assertion output more readable? · Issue #5 · purescript/purescript-assert · GitHub
Open Graph Title: Can we make assertion output more readable? · Issue #5 · purescript/purescript-assert
X Title: Can we make assertion output more readable? · Issue #5 · purescript/purescript-assert
Description: Some libraries outside of core use this library as their way of testing. The problem is that the output is pretty hard to understand. How would we feel about adding a few small helpers to make the output better? assertEqual ∷ forall a ef...
Open Graph Description: Some libraries outside of core use this library as their way of testing. The problem is that the output is pretty hard to understand. How would we feel about adding a few small helpers to make the ...
X Description: Some libraries outside of core use this library as their way of testing. The problem is that the output is pretty hard to understand. How would we feel about adding a few small helpers to make the ...
Opengraph URL: https://github.com/purescript/purescript-assert/issues/5
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Can we make assertion output more readable?","articleBody":"Some libraries outside of core use this library as their way of testing. The problem is that the output is pretty hard to understand. How would we feel about adding a few small helpers to make the output better?\r\n\r\n```PureScript\r\nassertEqual ∷ forall a eff. Eq a => Show a => { expected :: a, actual :: a } -> Eff (assert :: ASSERT | eff) Unit\r\nassertEqual {actual, expected} = do\r\n unless result $ log message\r\n assert' message result\r\n where\r\n message = \"Expected: \" \u003c> show expected \u003c> \"\\nActual: \" \u003c> show actual\r\n result = actual == expected\r\n\r\nassertTrue :: forall eff. Boolean -> Eff (assert :: ASSERT | eff) Unit\r\nassertTrue actual = assertEqual { actual, expected: true }\r\n\r\nassertFalse :: forall eff. Boolean -> Eff (assert :: ASSERT | eff) Unit\r\nassertFalse actual = assertEqual { actual, expected: false }\r\n```","author":{"url":"https://github.com/joneshf","@type":"Person","name":"joneshf"},"datePublished":"2017-10-08T15:56:30Z","url":"https://github.com/purescript/purescript-assert/issues/5"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:1a8dd0dc-277b-c6b9-aaf7-239a183b1807 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DDB0:D5AA4:84AEEB:B34116:6B00D902 |
| html-safe-nonce | 457e186de9c12152915bb9c12792b9ed0071819e3307f41dad15e503b36311d5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEREIwOkQ1QUE0Ojg0QUVFQjpCMzQxMTY6NkIwMEQ5MDIiLCJ2aXNpdG9yX2lkIjoiNjAzNDI4NjAxMzA4NDM5MTY4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 594dcb32d7c2c7e223d1b00cab7b6df40c4eadfd6caf1f4cd93beebcbecd2935 |
| hovercard-subject-tag | issue:263727978 |
| 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/purescript/purescript-assert/5/issue_layout |
| twitter:image | https://opengraph.githubassets.com/43b15e629b5e0a9aac292ba334108acb48e7d788858af6a23b02dfd1eebbc154/purescript/purescript-assert/issues/5 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/43b15e629b5e0a9aac292ba334108acb48e7d788858af6a23b02dfd1eebbc154/purescript/purescript-assert/issues/5 |
| og:image:alt | Some libraries outside of core use this library as their way of testing. The problem is that the output is pretty hard to understand. How would we feel about adding a few small helpers to make the ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | joneshf |
| hostname | github.com |
| expected-hostname | github.com |
| None | a481f62a1e04c9b9bdcb5628230682c66d59006f5b13b080f79cba84a176905b |
| turbo-cache-control | no-preview |
| go-import | github.com/purescript/purescript-assert git https://github.com/purescript/purescript-assert.git |
| octolytics-dimension-user_id | 6556677 |
| octolytics-dimension-user_login | purescript |
| octolytics-dimension-repository_id | 35369138 |
| octolytics-dimension-repository_nwo | purescript/purescript-assert |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35369138 |
| octolytics-dimension-repository_network_root_nwo | purescript/purescript-assert |
| 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 | 84c8c5cc25e2fb7f2308428458538436baecc6d2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width