Began implementing the befunge field data structure
This commit is contained in:
parent
79a970515f
commit
4bacbc2375
13 changed files with 325 additions and 0 deletions
20
pkg/field/error_test.go
Normal file
20
pkg/field/error_test.go
Normal file
|
@ -0,0 +1,20 @@
|
|||
package field
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func requireErrorTypeMatch(t *testing.T, err error, expected error) {
|
||||
require.Equalf(t, reflect.TypeOf(err), reflect.TypeOf(expected), "Invalid error type. Got %s but expected %s", reflect.TypeOf(err), reflect.TypeOf(expected))
|
||||
}
|
||||
|
||||
func TestErrorsCoverage(t *testing.T) {
|
||||
readErr := ReadError{}
|
||||
_ = readErr.Error()
|
||||
_ = readErr.Unwrap()
|
||||
decodeError := DecodeError{}
|
||||
_ = decodeError.Error()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue