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:
Weimin Yu
2019-12-10 16:44:59 -05:00
committed by GitHub
parent f7b243e390
commit 3aad8b6aa7
23 changed files with 104 additions and 20 deletions
@@ -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.