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 2 of 6; 24 results per page.

Show the canonical directory
Preview of Go: Hello World
go
111 B
Actual file preview for Go: Hello World

Go: Hello World

The classic hello-world in Go (package main, an import, and fmt.Println, tab-indented like gofmt) for testing highlighters, the Go compiler, and parsers.

File
GO · Go
Preview of Go: Worker pool (goroutines, channels)
go
830 B
Actual file preview for Go: Worker pool (goroutines, channels)

Go: Worker pool (goroutines, channels)

A realistic Go program: a worker pool with structs and methods, goroutines, buffered channels, and a sync.WaitGroup, tab-indented like gofmt, for testing highlighters, go vet, and parsers.

File
GO · Go
Preview of HTML: Hello World
html
220 B
Actual file preview for HTML: Hello World

HTML: Hello World

A minimal, valid HTML5 document (doctype, head, and a single heading) for testing HTML parsers, highlighters, and validators against the simplest well-formed page.

File
HTML · HTML
Preview of HTML: Semantic article page
html
1 KB
Actual file preview for HTML: Semantic article page

HTML: Semantic article page

A realistic semantic HTML page with landmark elements (header, nav, main, article, footer), a figure with alt text and caption, and lists, for testing HTML parsers, accessibility tooling, and highlighters.

File
HTML · HTML
Preview of Java: Bank account (class, record, exceptions)
java
1.5 KB
Actual file preview for Java: Bank account (class, record, exceptions)

Java: Bank account (class, record, exceptions)

A realistic Java class with a package declaration, fields, a nested record, methods that throw exceptions, and formatted output, for testing highlighters, javac, Checkstyle, and parsers.

File
JAVA · Java
Preview of Java: Hello World
java
163 B
Actual file preview for Java: Hello World

Java: Hello World

The classic hello-world in Java (a public class with the standard main method) for testing highlighters, javac, and Java parsers.

File
JAVA · Java