diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2026-10-12 22:29:28 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2026-10-12 22:29:28 +0200 |
| commit | 3332671795b3a0b605c3b1d0d10c4085354e4c60 (patch) | |
| tree | 19bd812de03e48112e298469f1f2a557cb015404 /columnar/columnar_test.go | |
| parent | 19f1e1459bdcd645949675d797749a14a468446f (diff) | |
| download | go-gg-3332671795b3a0b605c3b1d0d10c4085354e4c60.tar.gz | |
bump Go version requirement to 1.27
Diffstat (limited to 'columnar/columnar_test.go')
| -rw-r--r-- | columnar/columnar_test.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/columnar/columnar_test.go b/columnar/columnar_test.go index 2804ac9..e0b2f45 100644 --- a/columnar/columnar_test.go +++ b/columnar/columnar_test.go @@ -5,6 +5,7 @@ package columnar_test import ( "encoding/json" + "regexp" "sync" "testing" @@ -101,10 +102,11 @@ func TestJSONRoundtripErrors(t *testing.T) { bar int } + expected := regexp.MustCompile(`columnar_test.nothingPublic has no exported fields$`) _, err := json.Marshal(columnar.List[nothingPublic]{{1, 2}}) - assert.Equal(t, err.Error(), `json: error calling MarshalJSON for type columnar.List[go.xyrillian.de/gg/columnar_test.nothingPublic·5]: columnar_test.nothingPublic has no exported fields`) + assert.ErrEqual(t, err, expected) err = json.Unmarshal([]byte(`{}`), new(columnar.List[nothingPublic]{})) - assert.Equal(t, err.Error(), `columnar_test.nothingPublic has no exported fields`) + assert.ErrEqual(t, err, expected) } func TestJSONUnmarshalFromInconsistentLengths(t *testing.T) { |
