diff options
author | Julien Dessaux | 2021-09-22 23:42:16 +0200 |
---|---|---|
committer | Julien Dessaux | 2021-09-22 23:42:16 +0200 |
commit | 6f70a7237b77ad75a3adcf2dd30bbf75376451a5 (patch) | |
tree | f59d537b52663110da8c7c0907eaec0b9564edc6 /pkg/field/error_test.go | |
parent | Finished implementing the stack stack (diff) | |
download | gofunge98-6f70a7237b77ad75a3adcf2dd30bbf75376451a5.tar.gz gofunge98-6f70a7237b77ad75a3adcf2dd30bbf75376451a5.tar.bz2 gofunge98-6f70a7237b77ad75a3adcf2dd30bbf75376451a5.zip |
Fixed test order mistake between expected value and got value
Diffstat (limited to '')
-rw-r--r-- | pkg/field/error_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/field/error_test.go b/pkg/field/error_test.go index 45e8f83..e87083e 100644 --- a/pkg/field/error_test.go +++ b/pkg/field/error_test.go @@ -8,7 +8,7 @@ import ( ) 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)) + require.Equalf(t, reflect.TypeOf(expected), reflect.TypeOf(err), "Invalid error type. Got %s but expected %s", reflect.TypeOf(err), reflect.TypeOf(expected)) } func TestErrorsCoverage(t *testing.T) { |