Title: UTBot generates test method names containing a typo · Issue #485 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: UTBot generates test method names containing a typo · Issue #485 · UnitTestBot/UTBotJava
X Title: UTBot generates test method names containing a typo · Issue #485 · UnitTestBot/UTBotJava
Description: Description UTBot generates method names containing a typo -- si instead of is. To Reproduce Run tests in SummaryReturnExampleTest.kt and expect the provided test names. Or run UTBot on the code snippet below. Actual behavior UTBot gener...
Open Graph Description: Description UTBot generates method names containing a typo -- si instead of is. To Reproduce Run tests in SummaryReturnExampleTest.kt and expect the provided test names. Or run UTBot on the code sn...
X Description: Description UTBot generates method names containing a typo -- si instead of is. To Reproduce Run tests in SummaryReturnExampleTest.kt and expect the provided test names. Or run UTBot on the code sn...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/485
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"UTBot generates test method names containing a typo","articleBody":"**Description**\r\n\r\nUTBot generates method names containing a typo -- `si` instead of `is`.\r\n\r\n**To Reproduce**\r\n\r\nRun tests in `SummaryReturnExampleTest.kt` and expect the provided test names. Or run UTBot on the code snippet below.\r\n\r\n**Actual behavior**\r\n\r\nUTBot generates test method names containing a typo (si instead of is). For example, `testCompareChars_0OfCharactertoCharsiEqualsA`.\r\n\r\n**Expected behavior**\r\n\r\nI expect to get the name equal `testCompareChars_0OfCharactertoCharIsEqualA`. This name is not perfect too, but at least it doesn't contain the typo. \r\n\r\n**Visual proofs (screenshots, logs, images)**\r\n\r\nRun UTBot on the following code snippet:\r\n~~~\r\n public char compareChars(char a, char b, int n) {\r\n if (n \u003c 1)\r\n return ' ';\r\n for (int i = 0; i \u003c n; i++) {\r\n if (Character.toChars(i)[0] == a) {\r\n return b;\r\n }\r\n if (Character.toChars(i)[0] == b) {\r\n return a;\r\n }\r\n }\r\n return a;\r\n }\r\n~~~\r\nYou will get methods with these names:\r\n~~~\r\n \"testCompareChars_NLessThan1\"\r\n \"testCompareChars_0OfCharactertoCharsiEqualsA\" // si -\u003e is\r\n \"testCompareChars_0OfCharactertoCharsiEqualsB\" // si -\u003e is\r\n \"testCompareChars_0OfCharactertoCharsiNotEqualsB\" // si -\u003e is\r\n~~~\r\n\r\n**Environment**\r\n\r\nJava 11","author":{"url":"https://github.com/onewhl","@type":"Person","name":"onewhl"},"datePublished":"2022-07-11T14:18:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/485/UTBotJava/issues/485"}
| 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:4640ecb1-c51c-52b0-f02f-8a46ceed7f7a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A92C:124E5D:3F987B:525483:69904368 |
| html-safe-nonce | 7e5fc79a055332e9e885c89cf18ef57d41a753c055798dfa0c3a5d4e4c2ff8c3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTJDOjEyNEU1RDozRjk4N0I6NTI1NDgzOjY5OTA0MzY4IiwidmlzaXRvcl9pZCI6Ijg3NTE4MTk0Nzg4ODk2Nzc2NzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 48389e8d5c659a0e73e741deb4d354c68374703b8d50c798c8e9049fc339d84f |
| hovercard-subject-tag | issue:1300780911 |
| 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/485/issue_layout |
| twitter:image | https://opengraph.githubassets.com/97806027de437d32cad3d9343c6a70c0ed64916d704180afae68385b54bd9bb9/UnitTestBot/UTBotJava/issues/485 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/97806027de437d32cad3d9343c6a70c0ed64916d704180afae68385b54bd9bb9/UnitTestBot/UTBotJava/issues/485 |
| og:image:alt | Description UTBot generates method names containing a typo -- si instead of is. To Reproduce Run tests in SummaryReturnExampleTest.kt and expect the provided test names. Or run UTBot on the code sn... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | onewhl |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| 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 | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width