Packs of test values

22 packs and 280 values, built into the program. Every value says what it usually breaks and what a correct application does instead.

A pack is a set of values chosen for one kind of field or one kind of mistake, in the order a tester meets them: the strongest first. Each value carries a sentence about what it usually breaks, and why, and one about what a correct application does. That sentence is what makes a catalogue worth more than a list of strings.

The packs are free to use under CC BY 4.0, in the palette, through nkb emit in a script, or as the files they are in the repository.

Whitespace

12 values

Characters that take up space, or claim to, and are impossible to see in a form.

whitespace

Unicode and text

12 values

Characters that look innocent and break counting, comparison and display.

unicode-text

Length bombs

12 values

Values sized against common limits and against the gap between a character and a byte.

length-bombs

Magic values

12 values

Words a human reads as text and a parser reads as a boolean, an absent value or a number.

magic-values

Extreme numbers

12 values

Numbers at the edges of their types, in foreign notations, and where precision runs out.

numbers-extreme

Impossible dates

12 values

Dates that do not exist, that are ambiguous, or that are written differently than the field assumes.

dates-impossible

Export breakers

12 values

Values that pass validation and break only in the exported file.

export-breakers

Polish locale

6 values

Polish identifiers, formats and characters that global commercial products do not handle.

locale-pl

File names and paths

28 values

Names that a file system, an archive or a server rejects, alters, or reads differently than the user meant.

filenames-paths

Look-alike pairs

12 values

Pairs of values that are identical on screen and different in storage.

look-alike-pairs

Complex emoji

12 values

Characters beyond the basic plane and composed sequences that break counting and truncation.

emoji-complex

Encoding and mojibake

11 values

Text that went through the wrong encoding and never came back.

encoding-mojibake

Pasted from a document

12 values

Characters that arrive with text copied out of a word processor or a web page.

pasted-from-word

E-mail addresses and URLs

12 values

Addresses that are formally valid but extreme, and ones that only look valid.

emails-urls

Names and identity

12 values

Names that break assumptions about what a "normal" name looks like.

names-identity

Time and time zones

12 values

Hours that do not exist, happen twice, or are written without a zone.

time-zones

Money and separators

12 values

Amounts written the way people and spreadsheets write them, and where precision ends.

currency-separators

Pseudolocalisation

10 values

The standard internationalisation-testing technique, reduced to values you can paste into a field.

pseudolocalization

JSON request bodies

12 values

JSON request bodies that parsers and databases read differently. Rename the example fields to those of your API.

json-payloads

Injections

11 values

Strings that show whether a field treats input as data or as code: quotes, markup, templates and paths.

injections

Passwords

17 values

Passwords that registration and login read differently: cut after 72 bytes, trimmed, unnormalised or miscounted.

passwords

Search queries

17 values

Queries that a search box reads as wildcards, query syntax or a broken address instead of the text the user typed.

search-queries