Re: New to go packaging. Need help with a test that has hard coded date value...

2023-02-19 Thread Daniel Swarbrick
Hi Scarlett, Welcome to the team! On 20.02.23 11:16, Scarlett Moore wrote: func TestTitleHeading(t *testing.T) {     doc := NewDocument()     doc.Heading(1, "Title", "A short description", time.Now())     if doc.String() != `.TH TITLE 1 "2022-01-11" "Title" "A short description"` {         t

New to go packaging. Need help with a test that has hard coded date value...

2023-02-19 Thread Scarlett Moore
Hi all, First, thank you for letting me join the team. I am excited to be here. The problematic test... func TestTitleHeading(t *testing.T) {     doc := NewDocument()     doc.Heading(1, "Title", "A short description", time.Now())     if doc.String() != `.TH TITLE 1 "2022-01-11" "Title" "A shor