Skip to content

Commit 8c09e82

Browse files
authored
Fix EBCDIC1047 prefixer description (#333)
* fix EBCDIC1047 prefixer description * update EBCDIC1047 tests to new Inspect string
1 parent 4f68b04 commit 8c09e82

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

prefix/ebcdic1047.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func (p *ebcdic1047Prefixer) DecodeLength(maxLen int, data []byte) (int, int, er
6262
}
6363

6464
func (p *ebcdic1047Prefixer) Inspect() string {
65-
return fmt.Sprintf("EBCDIC.%s", strings.Repeat("L", p.digits))
65+
return fmt.Sprintf("EBCDIC1047.%s", strings.Repeat("L", p.digits))
6666
}
6767

6868
type ebcdic1047FixedPrefixer struct{}
@@ -80,5 +80,5 @@ func (p *ebcdic1047FixedPrefixer) DecodeLength(fixLen int, data []byte) (int, in
8080
}
8181

8282
func (p *ebcdic1047FixedPrefixer) Inspect() string {
83-
return "EBCDIC.Fixed"
83+
return "EBCDIC1047.Fixed"
8484
}

prefix/ebcdic1047_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,9 @@ func TestEBCDIC1047PrefixersDecodeErrors(t *testing.T) {
420420

421421
func TestEBCDIC1047PrefixersInspect(t *testing.T) {
422422
t.Parallel()
423-
require.Equal(t, "EBCDIC.Fixed", EBCDIC1047.Fixed.Inspect())
424-
require.Equal(t, "EBCDIC.L", EBCDIC1047.L.Inspect())
425-
require.Equal(t, "EBCDIC.LL", EBCDIC1047.LL.Inspect())
426-
require.Equal(t, "EBCDIC.LLL", EBCDIC1047.LLL.Inspect())
427-
require.Equal(t, "EBCDIC.LLLL", EBCDIC1047.LLLL.Inspect())
423+
require.Equal(t, "EBCDIC1047.Fixed", EBCDIC1047.Fixed.Inspect())
424+
require.Equal(t, "EBCDIC1047.L", EBCDIC1047.L.Inspect())
425+
require.Equal(t, "EBCDIC1047.LL", EBCDIC1047.LL.Inspect())
426+
require.Equal(t, "EBCDIC1047.LLL", EBCDIC1047.LLL.Inspect())
427+
require.Equal(t, "EBCDIC1047.LLLL", EBCDIC1047.LLLL.Inspect())
428428
}

0 commit comments

Comments
 (0)