Title: UTBot Python cannot find Division by Zero problem · Issue #1831 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: UTBot Python cannot find Division by Zero problem · Issue #1831 · UnitTestBot/UTBotJava
X Title: UTBot Python cannot find Division by Zero problem · Issue #1831 · UnitTestBot/UTBotJava
Description: Description Even when all types are specified UTBot Python doesn't find case when Division by Zero happens. Both UTBotJava and UTBotCPP can find such problem and it seems quite classic example of the problem which could be revealed with ...
Open Graph Description: Description Even when all types are specified UTBot Python doesn't find case when Division by Zero happens. Both UTBotJava and UTBotCPP can find such problem and it seems quite classic example of t...
X Description: Description Even when all types are specified UTBot Python doesn't find case when Division by Zero happens. Both UTBotJava and UTBotCPP can find such problem and it seems quite classic example ...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/1831
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"UTBot Python cannot find Division by Zero problem","articleBody":"**Description**\r\n\r\nEven when all types are specified UTBot Python doesn't find case when Division by Zero happens. Both UTBotJava and UTBotCPP can find such problem and it seems quite classic example of the problem which could be revealed with static analysis, so I would expect that UTBot Python also find the error.\r\n\r\n**To Reproduce**\r\n\r\nSteps to reproduce the behavior:\r\n\r\n```python\r\ndef div(a: int, b: int) -\u003e int:\r\n return a / b\r\n```\r\n\r\n1. Invoke code generation on code above\r\n\r\n**Expected behavior**\r\n\r\nTest which exposes 'Division by Zero' problem is generated among the others.\r\n\r\n**Actual behavior**\r\n\r\nNo such test is generated, the only test looks like that:\r\n```python\r\n def test_div(self):\r\n \"\"\"\r\n a = 4\r\n b = 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111\r\n \"\"\"\r\n actual = basics.div(4, 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111)\r\n \r\n self.assertEqual(0.0, actual)\r\n```\r\n","author":{"url":"https://github.com/tyuldashev","@type":"Person","name":"tyuldashev"},"datePublished":"2023-02-20T14:07:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1831/UTBotJava/issues/1831"}
| 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:0123c514-85f7-6158-337e-65c6d3560c65 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B490:EAF05:269670:34B019:698DFFA0 |
| html-safe-nonce | 58c3a3495113c2ec7e0f2932135f631f0b1860adea801702b79fffc0376dd93e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDkwOkVBRjA1OjI2OTY3MDozNEIwMTk6Njk4REZGQTAiLCJ2aXNpdG9yX2lkIjoiODkwMDM4Mjg3NzQ1Mjg2MDQ4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3b076103f7927413aaa650d3d7bd17c1ec3763eee2a4462bb7d1a493587a977d |
| hovercard-subject-tag | issue:1591935923 |
| 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/UnitTestBot/UTBotJava/1831/issue_layout |
| twitter:image | https://opengraph.githubassets.com/45c0a87e2fefcaff8d39e868eff56ba92c32d4a58d95db31e5919c6859645847/UnitTestBot/UTBotJava/issues/1831 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/45c0a87e2fefcaff8d39e868eff56ba92c32d4a58d95db31e5919c6859645847/UnitTestBot/UTBotJava/issues/1831 |
| og:image:alt | Description Even when all types are specified UTBot Python doesn't find case when Division by Zero happens. Both UTBotJava and UTBotCPP can find such problem and it seems quite classic example of t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tyuldashev |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4d76af840d3174ae6e2538f47f7ea4876a854b6ac4e6fe849e30bdd90242399f |
| turbo-cache-control | no-preview |
| go-import | github.com/UnitTestBot/UTBotJava git https://github.com/UnitTestBot/UTBotJava.git |
| octolytics-dimension-user_id | 87413538 |
| octolytics-dimension-user_login | UnitTestBot |
| octolytics-dimension-repository_id | 480810501 |
| octolytics-dimension-repository_nwo | UnitTestBot/UTBotJava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 480810501 |
| octolytics-dimension-repository_network_root_nwo | UnitTestBot/UTBotJava |
| 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 | c9daf44b4f7506beb4bbdaf20e9c0b4ba9a94e56 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width