Esempi
A version bump
Input
release=1
release=2Expected checks
Case-insensitiveContains "<del>1</del>"
Contains "<ins>2</ins>"- Delimitatore di campione
- Differenza per
Word- Mostra aggiunti
On- Mostra rimosso
On- Mostra sottrazione
Off- Ignora spazi bianchi
Off
A corrected setting
Input
cache off
cache onExpected checks
Case-insensitiveContains "<del>off</del>"
Contains "<ins>on</ins>"- Delimitatore di campione
- Differenza per
Word- Mostra aggiunti
On- Mostra rimosso
On- Mostra sottrazione
Off- Ignora spazi bianchi
Off
A renamed file
Input
old.json
new.jsonExpected checks
Case-insensitiveContains "<del>old</del>"
Contains "<ins>new</ins>"- Delimitatore di campione
- Differenza per
Word- Mostra aggiunti
On- Mostra rimosso
On- Mostra sottrazione
Off- Ignora spazi bianchi
Off
A changed unit
Input
distance miles
distance metresExpected checks
Case-insensitiveContains "<del>miles</del>"
Contains "<ins>metres</ins>"- Delimitatore di campione
- Differenza per
Word- Mostra aggiunti
On- Mostra rimosso
On- Mostra sottrazione
Off- Ignora spazi bianchi
Off
A corrected word
Input
hello work
hello worldExpected checks
Case-insensitiveContains "<del>work</del>"
Contains "<ins>world</ins>"- Delimitatore di campione
- Differenza per
Word- Mostra aggiunti
On- Mostra rimosso
On- Mostra sottrazione
Off- Ignora spazi bianchi
Off
Diff added with subtraction, basic usage
Input
testing23
testing123Expected answer
<ins>1</ins>- Delimitatore di campione
\n\n- Differenza per
Character- Mostra aggiunti
On- Mostra rimosso
On- Mostra sottrazione
On- Ignora spazi bianchi
Off
Diff removed with subtraction, basic usage
Input
testing123
testing3Expected answer
<del>12</del>- Delimitatore di campione
\n\n- Differenza per
Character- Mostra aggiunti
On- Mostra rimosso
On- Mostra sottrazione
On- Ignora spazi bianchi
Off
Diff, basic usage
Input
testing23
testing123Expected answer
testing<ins>1</ins>23- Delimitatore di campione
\n\n- Differenza per
Character- Mostra aggiunti
On- Mostra rimosso
On- Mostra sottrazione
Off- Ignora spazi bianchi
Off
Parametri
| Parametro | Valore predefinito | Input e opzioni |
|---|---|---|
| Delimitatore di campione | "\\n\\n" | Sono supportate sequenze di escape come \n, \r e \t |
| Differenza per | Carattere | Carattere, Parola, Linea, Frase, CSS, JSON |
| Mostra aggiunti | true | Attivo o disattivo |
| Mostra rimosso | true | Attivo o disattivo |
| Mostra sottrazione | false | Attivo o disattivo |
| Ignora spazi bianchi | false | Si applica ai confronti per parole e righe. |