Improve test
This commit is contained in:
parent
c5fbe7e56b
commit
3d95401a98
@ -45,4 +45,10 @@ func TestDocument_PlainTextDocument_AddText(t *testing.T) {
|
|||||||
t.Fatalf("should be able to add document: %v", err)
|
t.Fatalf("should be able to add document: %v", err)
|
||||||
}
|
}
|
||||||
assert.Equal(t, doc.Text(), "Some text|Next")
|
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")
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user