Fix the ranges in unified diff output
This commit is contained in:
parent
094ba84680
commit
3cb7d5ab76
6 changed files with 15 additions and 13 deletions
|
|
@ -4,7 +4,7 @@ expression: "&diff.unified_diff().header(\"a.txt\", \"b.txt\").to_string()"
|
|||
---
|
||||
--- a.txt
|
||||
+++ b.txt
|
||||
@@ -15,3 +19,3 @@
|
||||
@@ -16,7 +16,7 @@
|
||||
p
|
||||
q
|
||||
r
|
||||
|
|
@ -13,7 +13,7 @@ expression: "&diff.unified_diff().header(\"a.txt\", \"b.txt\").to_string()"
|
|||
t
|
||||
u
|
||||
v
|
||||
@@ -37,3 +41,3 @@
|
||||
@@ -38,7 +38,7 @@
|
||||
L
|
||||
M
|
||||
N
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ expression: "&diff.unified_diff().missing_newline_hint(false).header(\"a.txt\",\
|
|||
---
|
||||
--- a.txt
|
||||
+++ b.txt
|
||||
@@ -0 +0 @@
|
||||
@@ -1 +1 @@
|
||||
-a
|
||||
+b
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ expression: "&diff.unified_diff().header(\"a.txt\", \"b.txt\").to_string()"
|
|||
---
|
||||
--- a.txt
|
||||
+++ b.txt
|
||||
@@ -0 +0 @@
|
||||
@@ -1 +1 @@
|
||||
-a
|
||||
+b
|
||||
\ No newline at end of file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue