intelligen / java-diff-utils

Automatically exported from code.google.com/p/java-diff-utils
0 stars 0 forks source link

Parsing add-only parts of unified diffs generated by "diff -U 0 ..." fails #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create patch:
   diff -U 0 uc_original.txt uc_insert_revised.txt > uc_insert_patch.txt
2. Copy *.txt files to test/mocks and EmptyContextUnifiedDiffTest.java to 
diffutils/
3. Run JUnit on EmptyContextUnifiedDiffTest

What is the expected output? What do you see instead?

testUnifiedContextInsert shouldn't fail.

What version of the product are you using? On what operating system?
diffutils-1.2.1.jar
diff (GNU diffutils) 3.0
Ubuntu 10.10

I have included a patch to fix this issue.

Original issue reported on code.google.com by jharj...@gmail.com on 15 Jun 2011 at 8:40

Attachments: