Title: Two arbFs with same arguments always produce identical functions · Issue #314 · functionaljava/functionaljava · GitHub
Open Graph Title: Two arbFs with same arguments always produce identical functions · Issue #314 · functionaljava/functionaljava
X Title: Two arbFs with same arguments always produce identical functions · Issue #314 · functionaljava/functionaljava
Description: Consider: @RunWith(PropertyTestRunner.class) public final class ArbFProperties { public Property arbFProperty() { return Property.property( Arbitrary.arbF(Cogen.cogenInteger, Arbitrary.arbInteger), Arbitrary.arbF(Cogen.cogenInteger, Arbi...
Open Graph Description: Consider: @RunWith(PropertyTestRunner.class) public final class ArbFProperties { public Property arbFProperty() { return Property.property( Arbitrary.arbF(Cogen.cogenInteger, Arbitrary.arbInteger),...
X Description: Consider: @RunWith(PropertyTestRunner.class) public final class ArbFProperties { public Property arbFProperty() { return Property.property( Arbitrary.arbF(Cogen.cogenInteger, Arbitrary.arbInteger),...
Opengraph URL: https://github.com/functionaljava/functionaljava/issues/314
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Two arbFs with same arguments always produce identical functions","articleBody":"Consider:\r\n```\r\n@RunWith(PropertyTestRunner.class)\r\npublic final class ArbFProperties {\r\n\r\n public Property arbFProperty() {\r\n return Property.property(\r\n Arbitrary.arbF(Cogen.cogenInteger, Arbitrary.arbInteger),\r\n Arbitrary.arbF(Cogen.cogenInteger, Arbitrary.arbInteger),\r\n Arbitrary.arbInteger,\r\n (f1, f2, arg) -> {\r\n System.out.format(\"arg = %d, f1(arg) = %d, f2(arg) = %d%n\", arg, f1.f(arg), f2.f(arg));\r\n return Property.prop(true);\r\n });\r\n }\r\n\r\n}\r\n```\r\n\r\nThe functions always produce the same result. This seems to be intentional, the way `arbF` is programmed, but it is surprising to me. To create two independent functions, I have to use different cogenerators for the arguments (different arbitraries for the results are harder to make independent).\r\n\r\nIs this a bug?","author":{"url":"https://github.com/mrbackend","@type":"Person","name":"mrbackend"},"datePublished":"2017-02-23T09:37:52Z","url":"https://github.com/functionaljava/functionaljava/issues/314"}
| 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:a190a960-e8fc-a16a-e151-63d6235215ba |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E432:3923DE:A5BDFF:E29F09:6AFBDB2F |
| html-safe-nonce | f20dee313042a8cc19753e47d0e826a828c49da3662b20cb01d08baa509db8a1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDMyOjM5MjNERTpBNUJERkY6RTI5RjA5OjZBRkJEQjJGIiwidmlzaXRvcl9pZCI6IjIxOTYyNTI4MDE1Nzc1MDc2MzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d43e96735e4ae026ece3021eace8fde43e348ae3e2b112d4142c9c5649148adb |
| hovercard-subject-tag | issue:209709340 |
| 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/functionaljava/functionaljava/314/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e8b47c1fb155c8c92268eb81ffcf06129f97c50ee664ef103c1e91fb71925d5e/functionaljava/functionaljava/issues/314 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e8b47c1fb155c8c92268eb81ffcf06129f97c50ee664ef103c1e91fb71925d5e/functionaljava/functionaljava/issues/314 |
| og:image:alt | Consider: @RunWith(PropertyTestRunner.class) public final class ArbFProperties { public Property arbFProperty() { return Property.property( Arbitrary.arbF(Cogen.cogenInteger, Arbitrary.arbInteger),... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mrbackend |
| hostname | github.com |
| expected-hostname | github.com |
| None | 18742cb872ec73544356e60359266b67aafece70c4ce008042e06227924cdd07 |
| turbo-cache-control | no-preview |
| go-import | github.com/functionaljava/functionaljava git https://github.com/functionaljava/functionaljava.git |
| octolytics-dimension-user_id | 458836 |
| octolytics-dimension-user_login | functionaljava |
| octolytics-dimension-repository_id | 1033614 |
| octolytics-dimension-repository_nwo | functionaljava/functionaljava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1033614 |
| octolytics-dimension-repository_network_root_nwo | functionaljava/functionaljava |
| 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 | 820be804f18e1ef3940bd74a00d41d73d02e2b91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width