From 3d95401a98af7e19993d271c9fcbe8564f3ec800 Mon Sep 17 00:00:00 2001 From: mcrakhman Date: Tue, 12 Jul 2022 23:13:51 +0200 Subject: [PATCH] Improve test --- plaintextdocument/document_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plaintextdocument/document_test.go b/plaintextdocument/document_test.go index af596e54..204115a0 100644 --- a/plaintextdocument/document_test.go +++ b/plaintextdocument/document_test.go @@ -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") }