Skip to content

Commit

Permalink
better constvals test (w/ clobber)
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-cotton committed Aug 23, 2021
1 parent dff995e commit 37c8ac6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion indexing/constvals_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ func TestConstVals(t *testing.T) {
w := idx.Var()
var err error
for _, i := range [...]I{z, o, v, w} {
err = plain.TestRoundTrip(i, true)
err = plain.TestRoundTripClobber(i, func(c plain.Coder) {
cc := c.(*C)
cc.p = nil
}, true)
if err != nil {
t.Error(err)
}
Expand Down

0 comments on commit 37c8ac6

Please sign in to comment.