tester

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2020 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const MainGoTemplate = `` /* 1000-byte string literal not displayed */
View Source
const MainTestGoTemplate = `` /* 249-byte string literal not displayed */
View Source
const SampleInTemplate = "go\n"
View Source
const SampleOutTemplate = "hello, go\n"

Variables

View Source
var Delimiter = "--"

Delimiter is an input/output delimiter line in single text file

Functions

func CreateDirectory

func CreateDirectory(dir string, opts *DirectoryOptions) error

func Run

func Run(t *testing.T, pattern string, solve func(in io.Reader, out io.Writer) error)

Run processes solutions with inputs

Types

type DirectoryOptions

type DirectoryOptions struct {
	Preamble   string
	OmitSample bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL