Title: Change line has wrong diff indicators · Issue #18 · dnaumenko/java-diff-utils · GitHub
Open Graph Title: Change line has wrong diff indicators · Issue #18 · dnaumenko/java-diff-utils
X Title: Change line has wrong diff indicators · Issue #18 · dnaumenko/java-diff-utils
Description: What steps will reproduce the problem? This JUnit test fails on the 2nd assert: public final void testGenerateDiffRowsListOfStringListOfStringChange1() { DiffRowGenerator generator = new DiffRowGenerator.Builder().showInlineDiffs(true).i...
Open Graph Description: What steps will reproduce the problem? This JUnit test fails on the 2nd assert: public final void testGenerateDiffRowsListOfStringListOfStringChange1() { DiffRowGenerator generator = new DiffRowGen...
X Description: What steps will reproduce the problem? This JUnit test fails on the 2nd assert: public final void testGenerateDiffRowsListOfStringListOfStringChange1() { DiffRowGenerator generator = new DiffRowGen...
Opengraph URL: https://github.com/dnaumenko/java-diff-utils/issues/18
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Change line has wrong diff indicators","articleBody":"```\nWhat steps will reproduce the problem?\n\nThis JUnit test fails on the 2nd assert:\n\n public final void testGenerateDiffRowsListOfStringListOfStringChange1() {\n\n DiffRowGenerator generator = new DiffRowGenerator.Builder().showInlineDiffs(true).ignoreWhiteSpaces(true)\n .columnWidth(100).build();\n\n List\u003cString\u003e revised = new ArrayList\u003cString\u003e();\n List\u003cString\u003e original = new ArrayList\u003cString\u003e();\n\n original.add(\"aaaaa\");\n revised.add(\"aabaa\");\n\n List\u003cDiffRow\u003e result = generator.generateDiffRows(original, revised);\n\n assertEquals(\"wrong size\", 1, result.size());\n\n assertEquals(\"wrong tag\", DiffRow.Tag.CHANGE, result.get(0).getTag());\n assertEquals(\"wrong new value\", \"aa\u003cspan class=\\\"editNewInline\\\"\u003eb\u003c/span\u003eaa\", result.get(0).getNewLine());\n assertEquals(\"wrong old value\", \"aa\u003cspan class=\\\"editOldInline\\\"\u003ea\u003c/span\u003eaa\", result.get(0).getOldLine());\n }\n\nWhat is the expected output? What do you see instead?\n\njunit.framework.ComparisonFailure: wrong old value expected:\u003caa[\u003cspan \nclass=\"editOldInline\"\u003ea\u003c/span\u003eaa]\u003e but was:\u003caa[aa\u003cspan \nclass=\"editOldInline\"\u003ea\u003c/span\u003e]\u003e\n at junit.framework.Assert.assertEquals(Assert.java:81)\n\nNote that the difference for the \"old\" line indicates the changed part is the \nlast \"a\" and not the middle \"a\" where it should be.\n\nWhat version of the product are you using? On what operating system?\n\nDownloaded this file: java-diff-utils-1.2src.zip\nWindows XP\n\nPlease provide any additional information below.\n\n\n```\n\nOriginal issue reported on code.google.com by `LeeMeado...@gmail.com` on 2 May 2011 at 2:31\n\nAttachments:\n- [DiffRowGeneratorTest.java](https://storage.googleapis.com/google-code-attachments/java-diff-utils/issue-18/comment-0/DiffRowGeneratorTest.java)\n","author":{"url":"https://github.com/GoogleCodeExporter","@type":"Person","name":"GoogleCodeExporter"},"datePublished":"2016-02-28T10:19:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/18/java-diff-utils/issues/18"}
| 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:94b9b9ce-5c45-8c5b-1586-c45c9af68370 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B8A6:F66E9:A291C2:D35DB4:699066AA |
| html-safe-nonce | 115eb1b7b991d47962c8ef4e5c9a68a290a0097d155757e3c9eceb76291d7f2e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEE2OkY2NkU5OkEyOTFDMjpEMzVEQjQ6Njk5MDY2QUEiLCJ2aXNpdG9yX2lkIjoiNjc3MDg4NzI3NTI4NDgxNzU3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f5a55a49a0464a4fc37a70367d3c3bc4bb3d51bab53538ffb25a132b6e7a488c |
| hovercard-subject-tag | issue:137035708 |
| 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/dnaumenko/java-diff-utils/18/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2ab37f2e215e0e336c94a009c328ee43d12f53a333cb9f987466a38a122a8758/dnaumenko/java-diff-utils/issues/18 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2ab37f2e215e0e336c94a009c328ee43d12f53a333cb9f987466a38a122a8758/dnaumenko/java-diff-utils/issues/18 |
| og:image:alt | What steps will reproduce the problem? This JUnit test fails on the 2nd assert: public final void testGenerateDiffRowsListOfStringListOfStringChange1() { DiffRowGenerator generator = new DiffRowGen... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GoogleCodeExporter |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/dnaumenko/java-diff-utils git https://github.com/dnaumenko/java-diff-utils.git |
| octolytics-dimension-user_id | 158093 |
| octolytics-dimension-user_login | dnaumenko |
| octolytics-dimension-repository_id | 52715583 |
| octolytics-dimension-repository_nwo | dnaumenko/java-diff-utils |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 52715583 |
| octolytics-dimension-repository_network_root_nwo | dnaumenko/java-diff-utils |
| 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