Patch sequence writers to remove definition from header when json format is used.

Former-commit-id: a8a74cccb52d577d4ea1c0ad88b121a8e511149d
This commit is contained in:
2023-10-05 07:31:31 +02:00
parent d23a911080
commit 0a8f7afb2a
5 changed files with 27 additions and 27 deletions

View File

@ -61,7 +61,7 @@ func (s *XopenTest) TestWopen(c *C) {
_, err = os.Stat(f)
c.Assert(err, IsNil)
c.Assert(wtr.wtr, NotNil)
fmt.Fprintf(wtr, testString)
fmt.Fprint(wtr, testString)
wtr.Close()
rdr, err := Ropen(f)
@ -70,7 +70,7 @@ func (s *XopenTest) TestWopen(c *C) {
str, err := rdr.ReadString(99)
c.Assert(str, Equals, testString)
c.Assert(err, Equals, io.EOF)
str, err = rdr.ReadString(99)
str, _ = rdr.ReadString(99)
c.Assert(str, Equals, "")
rdr.Close()