io

package
v0.0.0-...-37beb7e Latest Latest
Warning

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

Go to latest
Published: May 28, 2016 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestCases

func TestCases(f TestCaseFunc)

Types

type CompareOutput

type CompareOutput struct {
	// contains filtered or unexported fields
}

func NewCompareOutput

func NewCompareOutput(correctF io.Reader) *CompareOutput

func (*CompareOutput) GetOutput

func (co *CompareOutput) GetOutput(i int) []byte

func (*CompareOutput) HasOutput

func (co *CompareOutput) HasOutput(i int) bool

type Input

type Input struct {
	// contains filtered or unexported fields
}

func (*Input) BigInt

func (i *Input) BigInt() *big.Int

func (*Input) Bytes

func (i *Input) Bytes() []byte

func (*Input) Digits

func (i *Input) Digits() []int

func (*Input) Float

func (i *Input) Float() float64

func (*Input) GridFloat

func (i *Input) GridFloat(y, x int) [][]float64

func (*Input) GridInt

func (i *Input) GridInt(y, x int) integer.Grid

func (*Input) Int

func (i *Input) Int() int

func (*Input) MultiSetInt

func (i *Input) MultiSetInt(n int) *integer.MultiSet

func (*Input) Scan

func (i *Input) Scan()

func (*Input) SetInt

func (i *Input) SetInt(n int) *integer.Set

func (*Input) SliceBytes

func (i *Input) SliceBytes(n int) [][]byte

func (*Input) SliceFloat

func (i *Input) SliceFloat(n int) []float64

func (*Input) SliceInt

func (i *Input) SliceInt(n int) integer.Slice

func (*Input) SliceString

func (i *Input) SliceString(n int) []string

func (*Input) SliceTupleFromFloats

func (i *Input) SliceTupleFromFloats(n, m int) *st.SliceTuple

func (*Input) SliceTupleFromInts

func (i *Input) SliceTupleFromInts(n, m int) *st.SliceTuple

func (*Input) SliceTupleFromStrings

func (i *Input) SliceTupleFromStrings(n, m int) *st.SliceTuple

func (*Input) String

func (i *Input) String() string

type InputProvider

type InputProvider interface {
	Scan() bool
	Text() string
	Bytes() []byte
	Err() error
}

type Output

type Output struct {
	// contains filtered or unexported fields
}

func (*Output) AssertByteCount

func (o *Output) AssertByteCount(a byte, count int, fatal ...bool)

func (*Output) AssertCount

func (o *Output) AssertCount(count int, fatal ...bool)

func (*Output) AssertEqual

func (o *Output) AssertEqual(data string, fatal ...bool)

func (*Output) AssertIntEqual

func (o *Output) AssertIntEqual(a, b int, fatal ...bool)

func (*Output) AssertTrue

func (o *Output) AssertTrue(a bool, fatal ...bool)

func (*Output) Debug

func (o *Output) Debug(a ...interface{})

func (*Output) DebugCase

func (o *Output) DebugCase()

func (*Output) Debugf

func (o *Output) Debugf(format string, a ...interface{})

func (*Output) Fatal

func (o *Output) Fatal(a ...interface{})

func (*Output) Fatalf

func (o *Output) Fatalf(format string, a ...interface{})

func (*Output) Periodic

func (o *Output) Periodic(a ...interface{})

func (*Output) PeriodicCount

func (o *Output) PeriodicCount()

func (*Output) PeriodicInt

func (o *Output) PeriodicInt(a int)

func (*Output) Periodicf

func (o *Output) Periodicf(format string, a ...interface{})

func (*Output) Point

func (o *Output) Point(x, y float64)

func (*Output) PointInt

func (o *Output) PointInt(x, y int)

func (*Output) Print

func (o *Output) Print(a ...interface{})

func (*Output) Printf

func (o *Output) Printf(format string, a ...interface{})

func (*Output) Println

func (o *Output) Println(a ...interface{})

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func (*Parser) ParseFile

func (parser *Parser) ParseFile()

func (*Parser) SetFn

func (parser *Parser) SetFn(inputFn string)

type TestCaseFunc

type TestCaseFunc func(*Input, *Output)

Jump to

Keyboard shortcuts

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