Documentation
¶
Index ¶
- func TestCases(f TestCaseFunc)
- type CompareOutput
- type Input
- func (i *Input) BigInt() *big.Int
- func (i *Input) Bytes() []byte
- func (i *Input) Digits() []int
- func (i *Input) Float() float64
- func (i *Input) GridFloat(y, x int) [][]float64
- func (i *Input) GridInt(y, x int) integer.Grid
- func (i *Input) Int() int
- func (i *Input) MultiSetInt(n int) *integer.MultiSet
- func (i *Input) Scan()
- func (i *Input) SetInt(n int) *integer.Set
- func (i *Input) SliceBytes(n int) [][]byte
- func (i *Input) SliceFloat(n int) []float64
- func (i *Input) SliceInt(n int) integer.Slice
- func (i *Input) SliceString(n int) []string
- func (i *Input) SliceTupleFromFloats(n, m int) *st.SliceTuple
- func (i *Input) SliceTupleFromInts(n, m int) *st.SliceTuple
- func (i *Input) SliceTupleFromStrings(n, m int) *st.SliceTuple
- func (i *Input) String() string
- type InputProvider
- type Output
- func (o *Output) AssertByteCount(a byte, count int, fatal ...bool)
- func (o *Output) AssertCount(count int, fatal ...bool)
- func (o *Output) AssertEqual(data string, fatal ...bool)
- func (o *Output) AssertIntEqual(a, b int, fatal ...bool)
- func (o *Output) AssertTrue(a bool, fatal ...bool)
- func (o *Output) Debug(a ...interface{})
- func (o *Output) DebugCase()
- func (o *Output) Debugf(format string, a ...interface{})
- func (o *Output) Fatal(a ...interface{})
- func (o *Output) Fatalf(format string, a ...interface{})
- func (o *Output) Periodic(a ...interface{})
- func (o *Output) PeriodicCount()
- func (o *Output) PeriodicInt(a int)
- func (o *Output) Periodicf(format string, a ...interface{})
- func (o *Output) Point(x, y float64)
- func (o *Output) PointInt(x, y int)
- func (o *Output) Print(a ...interface{})
- func (o *Output) Printf(format string, a ...interface{})
- func (o *Output) Println(a ...interface{})
- type Parser
- type TestCaseFunc
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) SliceBytes ¶
func (*Input) SliceFloat ¶
func (*Input) SliceString ¶
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
type InputProvider ¶
type Output ¶
type Output struct {
// contains filtered or unexported fields
}
func (*Output) AssertCount ¶
func (*Output) AssertEqual ¶
func (*Output) AssertIntEqual ¶
func (*Output) AssertTrue ¶
func (*Output) PeriodicCount ¶
func (o *Output) PeriodicCount()
func (*Output) PeriodicInt ¶
type TestCaseFunc ¶
Click to show internal directories.
Click to hide internal directories.