Improve test

This commit is contained in:
mcrakhman 2022-07-12 23:13:51 +02:00 committed by Mikhail Iudin
parent c5fbe7e56b
commit 3d95401a98
No known key found for this signature in database
GPG Key ID: FAAAA8BAABDFF1C0

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")
}