Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComplexNumberForMarshal ¶
type ComplexNumberForMarshal struct { Real float64 `json:"real" yaml:"real"` Imaginary float64 `json:"imaginary" yaml:"imaginary"` }
ComplexNumberForMarshal can be unmarshaled from byte streams.
type NumericallyCloseEnough ¶
type NumericallyCloseEnough struct{}
NumericallyCloseEnough asserts the two given numbers are within tolerance.
func (NumericallyCloseEnough) Check ¶
func (checker NumericallyCloseEnough) Check(params []interface{}, names []string) (result bool, error string)
Check to see if the obtained and expected are within tolerance.
func (NumericallyCloseEnough) Info ¶
func (checker NumericallyCloseEnough) Info() *check.CheckerInfo
Info returns information for the NumericallyCloseEnough
type UnmarshalFunc ¶
UnmarshalFunc abstracts how the byte stream will be unmarshalled.
Click to show internal directories.
Click to hide internal directories.