Improve test

This commit is contained in:
mcrakhman authored and Mikhail Iudin committed 2022-07-12 23:13:51 +02:00
1 parent c5fbe7e56b
commit 3d95401a98
1 file changed
+6
+6
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")
}