Skip to content
Novus Examples

Explore the test library

Find files, editable templates and browser test targets by what you need to make or test. Explore complete business kits for connected records, templates and expected results.

5297 results

Page 195 of 221; 24 results per page.

Show the canonical directory
Preview of TypeScript: Hello World
mts
144 B
Actual file preview for TypeScript: Hello World

TypeScript: Hello World

The classic hello-world in TypeScript (shipped as .mts to avoid the MPEG-TS .ts collision): a typed function for testing TypeScript-aware highlighters and the tsc compiler.

File
MTS · TypeScript
Preview of TypeScript: Shapes (union, generics, enum)
mts
1.1 KB
Actual file preview for TypeScript: Shapes (union, generics, enum)

TypeScript: Shapes (union, generics, enum)

A realistic TypeScript snippet with an enum, a discriminated union, generics, exhaustive switch handling, and a typed reduce, for testing the type checker, highlighters, and the TS ESLint parser.

File
MTS · TypeScript
Preview of UI Icon (SVG)
svg
532 B
Actual file preview for UI Icon (SVG)

UI Icon (SVG)

A single stroke-style UI icon (a document) as a 24×24 SVG: the kind of vector icon used in interfaces, for testing icon rendering, recolouring, and SVG-to-PNG conversion.

File
SVG · Vector
Use case
Conversion testingEditor testing· Conversion set
Preview of Unicode Bidi Controls: LRM, RLM, ALM, isolates and embeddings
txt
3.5 KB
Actual file preview for Unicode Bidi Controls: LRM, RLM, ALM, isolates and embeddings

Unicode Bidi Controls: LRM, RLM, ALM, isolates and embeddings

A reference sheet in which each of the ten shipped bidi control characters appears literally between ASCII guards, with its code point, UTF-8 bytes and the job it does. The two override characters are named but deliberately absent: a bidi rendering fixture does not need to ship the Trojan Source vector.

File
TXT · Bidi · UTF-8
Use case
InternationalizationEncoding detection+1· Conversion set
Preview of Unicode Contact - vCard 2.1
vcf
231 B
Actual file preview for Unicode Contact - vCard 2.1

Unicode Contact - vCard 2.1

A fictional multilingual contact for checking Unicode decoding and round trips between legacy and current vCard versions. This member uses vCard 2.1 syntax.

File
VCF · Calendar Contacts
Use case
Contact parsingConversion testing· Conversion set
Preview of Unicode Contact - vCard 3.0
vcf
195 B
Actual file preview for Unicode Contact - vCard 3.0

Unicode Contact - vCard 3.0

A fictional multilingual contact for checking Unicode decoding and round trips between legacy and current vCard versions. This member uses vCard 3.0 syntax.

File
VCF · Calendar Contacts
Use case
Contact parsingConversion testing· Conversion set
Preview of Unicode Contact - vCard 4.0
vcf
195 B
Actual file preview for Unicode Contact - vCard 4.0

Unicode Contact - vCard 4.0

A fictional multilingual contact for checking Unicode decoding and round trips between legacy and current vCard versions. This member uses vCard 4.0 syntax.

File
VCF · Calendar Contacts
Use case
Contact parsingConversion testing· Conversion set
Preview of Unicode Field Names and Labels (HTML)
html
6 KB
Actual file preview for Unicode Field Names and Labels (HTML)

Unicode Field Names and Labels (HTML)

Control names and labels outside ASCII, including a combining-accent pair that is visually identical to a precomposed one. A form parser that normalises names, or that assumes ASCII, produces a different key set from one that does not.

File
HTML · Software Quality · 8 fields
Preview of Unified Diff - Bare Line Number in the Hunk Header
diff
126 B
Actual file preview for Unified Diff - Bare Line Number in the Hunk Header

Unified Diff - Bare Line Number in the Hunk Header

A one-line file changed in place. Both ranges have length one, so the header is written `@@ -1 +1 @@` with no comma and no count: the abbreviation the unified format allows and that regexes of the form `-(\d+),(\d+)` fail to match.

File
DIFF · Diffs · UTF-8
Preview of Unified Diff - CRLF Line Endings Throughout
diff
821 B
Actual file preview for Unified Diff - CRLF Line Endings Throughout

Unified Diff - CRLF Line Endings Throughout

Byte-for-byte the same diff as its LF twin except that every line ends CR LF, which is what a diff produced or saved on Windows looks like. Readers that compare a hunk line against expected content without stripping the CR find that no line matches.

File
DIFF · Diffs · UTF-8
Use case
Encoding detectionVisual diff / regression+1· Paired fixture
Preview of Unified Diff - Deleted File Against /dev/null
diff
295 B
Actual file preview for Unified Diff - Deleted File Against /dev/null

Unified Diff - Deleted File Against /dev/null

The mirror of the added-file fixture: every line is a deletion and the new range is `+0,0`. A renderer that writes an empty file instead of unlinking it, or that reports the change as a truncation, fails this one.

File
DIFF · Diffs · UTF-8
Preview of Unified Diff - Diff of a Checked-In Patch File
diff
414 B
Actual file preview for Unified Diff - Diff of a Checked-In Patch File

Unified Diff - Diff of a Checked-In Patch File

Quilt, Debian and vendor trees check patches into the repository, so editing one produces a diff whose body is itself full of `+++`, `---` and `@@` lines and whose section heading is a `diff --git` line. Any scanner that finds file boundaries by searching for those tokens anywhere in the stream splits this single-file diff into several phantom files.

File
DIFF · Diffs · UTF-8
Preview of Unified Diff - Function Heading After the Hunk Header
diff
845 B
Actual file preview for Unified Diff - Function Heading After the Hunk Header

Unified Diff - Function Heading After the Hunk Header

git appends the enclosing declaration after the closing `@@` of each hunk header. The text is free-form and is not part of the range, so a parser that splits the header on `@@` and takes the last field reads the function signature as a range.

File
DIFF · Diffs · Go
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