package mogrify_test import ( "testing" "git.kirsle.net/apps/gophertype/pkg/mogrify" ) func TestLazyLoadImages(t *testing.T) { var tests = []struct { In string Expect string }{ { In: ``, Expect: ``, }, { In: ``, Expect: ``, }, { In: `Hello world`, Expect: `Hello world`, }, { In: ``, Expect: ``, }, { In: ``, Expect: ``, }, } for _, test := range tests { actual := mogrify.LazyLoadImages(test.In) if actual != test.Expect { t.Errorf("for input {%s} I expected {%s} but got: {%s}", test.In, test.Expect, actual, ) } } }