mirror of
https://github.com/google/nomulus
synced 2026-09-29 19:25:50 +00:00
Use TextDiffSubject to compare multi-line text (#406)
* Use TextDiffSubject to compare multi-line text It illustrates differences better. Moved TextDiffSubject.java to the common project for sharing.
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
This is a random file,
|
||||
with two lines and terminates with a newline.
|
||||
@@ -1,3 +0,0 @@
|
||||
This is a random file,
|
||||
|
||||
with three lines and terminates without a newline.
|
||||
@@ -1,5 +0,0 @@
|
||||
|Expected |Actual |
|
||||
|------------------------------------------------------|-----------------------------------------------------|
|
||||
|This is a random file, |This is a random file, |
|
||||
| |with **two** lines and terminates **with** a newline.|
|
||||
|with ~three~ lines and terminates ~without~ a newline.| |
|
||||
@@ -1,6 +0,0 @@
|
||||
--- expected
|
||||
+++ actual
|
||||
@@ -2,2 +2,1 @@
|
||||
-
|
||||
-with three lines and terminates without a newline.
|
||||
+with two lines and terminates with a newline.
|
||||
Reference in New Issue
Block a user