Skip to content
Novus Examples

Explore the test library

Search files, editable visual templates, and live browser targets from one registry-backed directory. Filtered query views stay crawlable for links but are deliberately noindex; the stable taxonomy pages below remain the canonical search surfaces.

88 results

Page 4 of 4; 24 results per page.

Show the canonical directory
Preview of Unified Diff - LF Line Endings Throughout
diff
795 B
Actual file preview for Unified Diff - LF Line Endings Throughout

Unified Diff - LF Line Endings Throughout

The LF half of the line-ending twin pair: identical text content to the CRLF fixture, differing only in the terminator bytes. Diff the two downloads to see nothing but line-ending changes, and use the pair to score end-of-line normalisation.

File
DIFF · Diffs · UTF-8
Use case
Encoding detectionVisual diff / regression+1· Paired fixture
Preview of Unified Diff - Line-Ending Conversion as Content Change
diff
260 B
Actual file preview for Unified Diff - Line-Ending Conversion as Content Change

Unified Diff - Line-Ending Conversion as Content Change

The file itself is LF-terminated, but every removed line carries a literal CR as its last character because the change under review is a CRLF-to-LF conversion. Renderers that do not show the CR display a hunk in which every removed and added line looks identical.

File
DIFF · Diffs · UTF-8
Preview of Unified Diff - New File Against /dev/null
diff
525 B
Actual file preview for Unified Diff - New File Against /dev/null

Unified Diff - New File Against /dev/null

A file created from nothing: the old side is `/dev/null` and the hunk header carries the zero-length range `-0,0`. Parsers that compute a 1-based start line from the old range produce line 1 instead of line 0 unless they special-case a zero count.

File
DIFF · Diffs · UTF-8
Preview of Unified Diff - No Newline Marker on Both Sides
diff
308 B
Actual file preview for Unified Diff - No Newline Marker on Both Sides

Unified Diff - No Newline Marker on Both Sides

Neither version ends with a newline, so the marker appears twice in one hunk: once after the last removed line and once after the last added line. Parsers that treat the marker as a terminator rather than an annotation stop reading at the first one and lose the added line.

File
DIFF · Diffs · UTF-8
Use case
Visual diff / regressionCode parsing+1· Conversion set
Preview of Unified Diff - No Newline Marker on the New Side Only
diff
154 B
Actual file preview for Unified Diff - No Newline Marker on the New Side Only

Unified Diff - No Newline Marker on the New Side Only

A one-line file is edited and loses its trailing newline in the process, so the marker follows the `+` line instead of the `-` line. Applying this and then re-diffing must not reintroduce the newline.

File
DIFF · Diffs · UTF-8
Use case
Visual diff / regressionCode parsing+1· Conversion set
Preview of Unified Diff - No Newline Marker on the Old Side Only
diff
255 B
Actual file preview for Unified Diff - No Newline Marker on the Old Side Only

Unified Diff - No Newline Marker on the Old Side Only

The before-state has no final newline and the after-state gains one, so the marker appears once, immediately after the last `-` line. The change is invisible in a rendered side-by-side view yet alters the file's bytes, which is why line-based comparators report a spurious no-op.

File
DIFF · Diffs · UTF-8
Use case
Visual diff / regressionCode parsing+1· Conversion set
Preview of Unified Diff - Octal-Quoted Non-ASCII Paths
diff
263 B
Actual file preview for Unified Diff - Octal-Quoted Non-ASCII Paths

Unified Diff - Octal-Quoted Non-ASCII Paths

With git's default `core.quotepath`, a path containing non-ASCII bytes is wrapped in double quotes and each byte is written as a backslash-octal escape. A parser that takes the header text literally creates a directory called `caf\303\251` on disk.

File
DIFF · Diffs · UTF-8
Use case
Encoding detectionVisual diff / regression+1· Conversion set
Preview of Unified Diff - Pasted Into an Email Body
diff
1018 B
Actual file preview for Unified Diff - Pasted Into an Email Body

Unified Diff - Pasted Into an Email Body

A patch as it actually arrives in a mailing-list message: prose above it, a sign-off and an email signature below it, and a signature separator that looks like the start of a deletion. Extractors must find the diff without swallowing the surrounding text.

File
DIFF · Diffs · UTF-8
Preview of Unified Diff - Raw UTF-8 Non-ASCII Paths
diff
235 B
Actual file preview for Unified Diff - Raw UTF-8 Non-ASCII Paths

Unified Diff - Raw UTF-8 Non-ASCII Paths

The same change with `core.quotepath=false`, so the path is written as raw UTF-8 and the header is not quoted. Compare with the quoted twin to confirm a parser resolves both spellings to the same file.

File
DIFF · Diffs · UTF-8
Use case
Encoding detectionVisual diff / regression+1· Conversion set
Preview of Unified Diff - Reverse of the Single-Hunk Diff
diff
272 B
Actual file preview for Unified Diff - Reverse of the Single-Hunk Diff

Unified Diff - Reverse of the Single-Hunk Diff

The exact inverse of the single-hunk fixture: the same edit expressed as a deletion instead of an insertion. Applying both in sequence must return the file to its original bytes, which makes this the fixture for `patch -R` and for revert paths.

File
DIFF · Diffs · UTF-8
Use case
Visual diff / regressionCode parsing+1· Paired fixture
Preview of Unified Diff - Several Hunks in One File
diff
739 B
Actual file preview for Unified Diff - Several Hunks in One File

Unified Diff - Several Hunks in One File

One TypeScript module edited in 2 places at once, so the hunks are far enough apart not to merge. Use it to check that a parser advances its line cursor by the hunk header rather than by counting emitted lines.

File
DIFF · Diffs · TypeScript
Preview of Unified Diff - Single Hunk, Single File
diff
272 B
Actual file preview for Unified Diff - Single Hunk, Single File

Unified Diff - Single Hunk, Single File

One added guard line in a shell script, rendered as a POSIX `diff -u` with three lines of context and timestamped ---/+++ headers. The smallest complete unified diff, and the baseline the context-format and normal-format twins in this group encode identically.

File
DIFF · Diffs · UTF-8
Use case
Visual diff / regressionCode parsing+1· Paired fixture
Preview of Unified Diff - Ten Lines of Context (diff -U10)
diff
1.1 KB
Actual file preview for Unified Diff - Ten Lines of Context (diff -U10)

Unified Diff - Ten Lines of Context (diff -U10)

The same edit as the zero-context fixture with ten lines of context, which merges the separate hunks into fewer, larger ones. Pair the two to check that a hunk-merging or context-trimming routine reaches the same applied result from either input.

File
DIFF · Diffs · UTF-8
Preview of Unified Diff - Three Files in One Stream
diff
1.3 KB
Actual file preview for Unified Diff - Three Files in One Stream

Unified Diff - Three Files in One Stream

Three unrelated files changed in a single diff stream, with no `diff --git` lines to mark the boundaries — the only separator is the next `---` header. Splitters that key on `diff --git` see one file here instead of three.

File
DIFF · Diffs · UTF-8
Preview of Unified Diff - Whitespace-Only Change
diff
304 B
Actual file preview for Unified Diff - Whitespace-Only Change

Unified Diff - Whitespace-Only Change

Indentation is converted from tabs to spaces and one line gains trailing whitespace, so the diff is large and the program is unchanged. It is the fixture for `-w`/`--ignore-all-space` handling and for review UIs that offer a hide-whitespace toggle.

File
DIFF · Diffs · UTF-8
Preview of Unified Diff - Zero Context (diff -U0)
diff
438 B
Actual file preview for Unified Diff - Zero Context (diff -U0)

Unified Diff - Zero Context (diff -U0)

`diff -U0` output: hunks contain nothing but +/- lines, and pure insertions produce ranges such as `-9,0`. Coverage and blame tools that need zero-context diffs hit this shape constantly, and hunk mergers that assume at least one context line get the offsets wrong.

File
DIFF · Diffs · UTF-8