Standard library / testing/quick

testing/quick.CheckEqualError.Error()

Format the differing results and counterexample. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
func (s *CheckEqualError) Error() string

Return Value

string

Result of the operation described above.

Working Example

Example Snippetgo
package main
import (  "fmt"  "testing/quick")
func main() {  e := &quick.CheckEqualError{CheckError: quick.CheckError{Count: 1, In: []any{7}}, Out1: []any{1}, Out2: []any{2}}  fmt.Println(len(e.Error()) > 0)}
Go Reference