gernest / utron

A lightweight MVC framework for Go(Golang)
MIT License
2.22k stars 149 forks source link

There exists a bug in view/view_test.go #79

Closed riclava closed 7 years ago

riclava commented 7 years ago
     for _, tpl := range tpls {
        verr := v.Render(out, tpl, data)
        if verr != nil {
                        // HERE
            t.Error(err)
        }
        if !strings.Contains(out.String(), data.Name) {
            t.Errorf("expeted %s to contain %s", out.String(), data.Name)
        }
    }
gernest commented 7 years ago

@riclava sorry I had to format the snippet to see clearly!

Can you explain to me more?

gernest commented 7 years ago

Oh! Thanks , I just spotted the issue! It was supposed to be verr! My bad lol!