Skip to content
Testaroo

Explore the test library

Find files, editable templates and browser test targets by what you need to make or test. The directory below is cut by format; the two collections under it cut the same library by subject and by workflow.

125 results

Page 1 of 6; 24 results per page.

Show the canonical directory
Preview of C: Hello World
c
123 B
Actual file preview for C: Hello World

C: Hello World

The classic hello-world in C (an include, main, and printf) for testing highlighters, C compilers, and parsers against the canonical first program.

File
C · C
Preview of C: Linked list (structs, malloc, pointers)
c
941 B
Actual file preview for C: Linked list (structs, malloc, pointers)

C: Linked list (structs, malloc, pointers)

A realistic C program: a singly linked list with a typedef struct, malloc/free memory management, pointer walking, and error handling, for testing highlighters, compilers, and static analysers.

File
C · C
Preview of C# Hello
cs
160 B
Actual file preview for C# Hello

C# Hello

Idiomatic C# hello-world for syntax highlighters and Roslyn-style parsers.

File
CS · Csharp
Preview of C++: Hello World
cpp
135 B
Actual file preview for C++: Hello World

C++: Hello World

The classic hello-world in C++: iostream and std::cout, for testing highlighters, C++ compilers, and parsers.

File
CPP · C++
Preview of C++: Series (class template, STL)
cpp
924 B
Actual file preview for C++: Series (class template, STL)

C++: Series (class template, STL)

A realistic C++ snippet with a class template, STL algorithms (max_element, accumulate), std::move, and range handling, for testing highlighters, g++/clang++, and parsers against real templates.

File
CPP · C++
Preview of CSS: Component styles (variables, flexbox, keyframes)
css
963 B
Actual file preview for CSS: Component styles (variables, flexbox, keyframes)

CSS: Component styles (variables, flexbox, keyframes)

A realistic component stylesheet using custom properties, flexbox, a fluid clamp() font size, color-mix(), a keyframe animation, and a media query, for testing CSS parsers, linters (stylelint), and highlighters.

File
CSS · Css
Preview of CSS: Hello World
css
205 B
Actual file preview for CSS: Hello World

CSS: Hello World

A minimal stylesheet that centres a heading with grid: the simplest useful CSS file for testing highlighters, CSS parsers, and minifiers.

File
CSS · Css