internal

package
v0.0.0-...-d783ee6 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Benchmark

func Benchmark(f func(*bufio.Scanner) (string, string, error), b *testing.B, input string)

Benchmark benchmarks a solver function.

Types

type TestCase

type TestCase struct {
	Details string // what is the testcase testing?
	Input   string
	Result1 string
	Result2 string
	WantErr bool // do we want an error to return?
}

TestCase represents a test case. If Result1 or Result2 are empty, do not test for those. This could be done if they are not literal answers and require a human to read them properly.

func (TestCase) Test

func (tc TestCase) Test(f func(*bufio.Scanner) (string, string, error), a *assert.Assertions)

Test tests a test case.

Jump to

Keyboard shortcuts

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