diff --git a/test/data/IDF_DiffTest/test-15-git-change-single-line-invalid.diff b/test/data/IDF_DiffTest/test-15-git-change-single-line-invalid.diff new file mode 100644 index 0000000..224561d --- /dev/null +++ b/test/data/IDF_DiffTest/test-15-git-change-single-line-invalid.diff @@ -0,0 +1,7 @@ +diff --git a/test_file b/test_file +index 2134e75..2eaf9ea 100644 +--- a/test_file ++++ b/test_file +@@ -1 +1 @@ +-Steddy is awesome ++Steddy is very awesome \ No newline at end of file diff --git a/test/data/IDF_DiffTest/test-15-git-change-single-line-invalid.expected b/test/data/IDF_DiffTest/test-15-git-change-single-line-invalid.expected new file mode 100644 index 0000000..7da92ae --- /dev/null +++ b/test/data/IDF_DiffTest/test-15-git-change-single-line-invalid.expected @@ -0,0 +1 @@ +a:1:{s:9:"test_file";a:2:{s:6:"chunks";a:1:{i:0;a:3:{i:0;a:3:{i:0;i:1;i:1;N;i:2;s:17:"Steddy is awesome";}i:1;a:3:{i:0;N;i:1;i:1;i:2;s:22:"Steddy is very awesome";}i:2;a:3:{i:0;i:2;i:1;i:2;i:2;N;}}}s:10:"chunks_def";a:1:{i:0;a:2:{i:0;a:1:{i:0;i:1;}i:1;a:1:{i:0;i:1;}}}}} \ No newline at end of file diff --git a/test/data/IDF_DiffTest/test-15-git-change-single-line.diff b/test/data/IDF_DiffTest/test-15-git-change-single-line.diff deleted file mode 100644 index 224561d..0000000 --- a/test/data/IDF_DiffTest/test-15-git-change-single-line.diff +++ /dev/null @@ -1,7 +0,0 @@ -diff --git a/test_file b/test_file -index 2134e75..2eaf9ea 100644 ---- a/test_file -+++ b/test_file -@@ -1 +1 @@ --Steddy is awesome -+Steddy is very awesome \ No newline at end of file diff --git a/test/data/IDF_DiffTest/test-15-git-change-single-line.expected b/test/data/IDF_DiffTest/test-15-git-change-single-line.expected deleted file mode 100644 index 7da92ae..0000000 --- a/test/data/IDF_DiffTest/test-15-git-change-single-line.expected +++ /dev/null @@ -1 +0,0 @@ -a:1:{s:9:"test_file";a:2:{s:6:"chunks";a:1:{i:0;a:3:{i:0;a:3:{i:0;i:1;i:1;N;i:2;s:17:"Steddy is awesome";}i:1;a:3:{i:0;N;i:1;i:1;i:2;s:22:"Steddy is very awesome";}i:2;a:3:{i:0;i:2;i:1;i:2;i:2;N;}}}s:10:"chunks_def";a:1:{i:0;a:2:{i:0;a:1:{i:0;i:1;}i:1;a:1:{i:0;i:1;}}}}} \ No newline at end of file diff --git a/test/data/IDF_DiffTest/test-16-git-newline-removed.diff b/test/data/IDF_DiffTest/test-16-git-newline-removed.diff new file mode 100644 index 0000000..45302b2 --- /dev/null +++ b/test/data/IDF_DiffTest/test-16-git-newline-removed.diff @@ -0,0 +1,8 @@ +diff --git a/foo b/foo +index a86c18f..71ccdd0 100644 +--- a/foo ++++ b/foo +@@ -1 +1 @@ +-This is foo ++This is foo +\ No newline at end of file diff --git a/test/data/IDF_DiffTest/test-16-git-newline-removed.expected b/test/data/IDF_DiffTest/test-16-git-newline-removed.expected new file mode 100644 index 0000000..7fd1428 --- /dev/null +++ b/test/data/IDF_DiffTest/test-16-git-newline-removed.expected @@ -0,0 +1 @@ +a:1:{s:3:"foo";a:2:{s:6:"chunks";a:1:{i:0;a:2:{i:0;a:3:{i:0;s:1:"1";i:1;s:0:"";i:2;s:11:"This is foo";}i:1;a:3:{i:0;s:0:"";i:1;s:1:"1";i:2;s:11:"This is foo";}}}s:10:"chunks_def";a:1:{i:0;a:2:{i:0;a:2:{i:0;s:1:"1";i:1;i:1;}i:1;a:2:{i:0;s:1:"1";i:1;i:1;}}}}} \ No newline at end of file diff --git a/test/data/IDF_DiffTest/test-17-git-newline-added.diff b/test/data/IDF_DiffTest/test-17-git-newline-added.diff new file mode 100644 index 0000000..5e0c3ff --- /dev/null +++ b/test/data/IDF_DiffTest/test-17-git-newline-added.diff @@ -0,0 +1,8 @@ +diff --git a/foo b/foo +index 71ccdd0..a86c18f 100644 +--- a/foo ++++ b/foo +@@ -1 +1 @@ +-This is foo +\ No newline at end of file ++This is foo diff --git a/test/data/IDF_DiffTest/test-17-git-newline-added.expected b/test/data/IDF_DiffTest/test-17-git-newline-added.expected new file mode 100644 index 0000000..7fd1428 --- /dev/null +++ b/test/data/IDF_DiffTest/test-17-git-newline-added.expected @@ -0,0 +1 @@ +a:1:{s:3:"foo";a:2:{s:6:"chunks";a:1:{i:0;a:2:{i:0;a:3:{i:0;s:1:"1";i:1;s:0:"";i:2;s:11:"This is foo";}i:1;a:3:{i:0;s:0:"";i:1;s:1:"1";i:2;s:11:"This is foo";}}}s:10:"chunks_def";a:1:{i:0;a:2:{i:0;a:2:{i:0;s:1:"1";i:1;i:1;}i:1;a:2:{i:0;s:1:"1";i:1;i:1;}}}}} \ No newline at end of file