Move all text functionality toplevel
This commit is contained in:
parent
de8d82ab63
commit
844769ae19
10 changed files with 96 additions and 118 deletions
25
src/snapshots/similar__udiff__unified_diff.snap
Normal file
25
src/snapshots/similar__udiff__unified_diff.snap
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
source: src/udiff.rs
|
||||
expression: "&diff.unified_diff().header(\"a.txt\", \"b.txt\").to_string()"
|
||||
---
|
||||
--- a.txt
|
||||
+++ b.txt
|
||||
@@ -15,3 +19,3 @@
|
||||
p
|
||||
q
|
||||
r
|
||||
-s
|
||||
+S
|
||||
t
|
||||
u
|
||||
v
|
||||
@@ -37,3 +41,3 @@
|
||||
L
|
||||
M
|
||||
N
|
||||
-O
|
||||
+o
|
||||
P
|
||||
Q
|
||||
R
|
||||
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
source: src/udiff.rs
|
||||
expression: "&diff.unified_diff().missing_newline_hint(false).header(\"a.txt\",\n \"b.txt\").to_string()"
|
||||
---
|
||||
--- a.txt
|
||||
+++ b.txt
|
||||
@@ -0 +0 @@
|
||||
-a
|
||||
+b
|
||||
|
||||
11
src/snapshots/similar__udiff__unified_diff_newline_hint.snap
Normal file
11
src/snapshots/similar__udiff__unified_diff_newline_hint.snap
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
source: src/udiff.rs
|
||||
expression: "&diff.unified_diff().header(\"a.txt\", \"b.txt\").to_string()"
|
||||
---
|
||||
--- a.txt
|
||||
+++ b.txt
|
||||
@@ -0 +0 @@
|
||||
-a
|
||||
+b
|
||||
\ No newline at end of file
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue