Improve test

This commit is contained in:
mcrakhman 2022-07-12 23:13:51 +02:00
parent d743317069
commit 3643719161
No known key found for this signature in database
GPG Key ID: DED12CFEF5B8396B

View File

@ -45,4 +45,10 @@ func TestDocument_PlainTextDocument_AddText(t *testing.T) {
t.Fatalf("should be able to add document: %v", err)
}
assert.Equal(t, doc.Text(), "Some text|Next")
err = doc.AddText("Shmext")
if err != nil {
t.Fatalf("should be able to add document: %v", err)
}
assert.Equal(t, doc.Text(), "Some text|Next|Shmext")
}