Began implementing the befunge field data structure

This commit is contained in:
Julien Dessaux 2021-09-14 17:56:04 +02:00
parent 79a970515f
commit 4bacbc2375
13 changed files with 325 additions and 0 deletions

20
pkg/field/error_test.go Normal file
View 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()
}