hlfw.ca

webbing

ref: fcf082d8955ce3b86e8a7c4742100d8e33c1a1e5
dir: /template_test.go/

View raw version
package template

import (
	"testing"
	"text/template"
)

func TestTemplates(t *testing.T) {
	if _, e := template.ParseGlob("*.tpl"); e != nil {
		t.Error(e)
	}

	if _, e := template.ParseGlob("help/*.tpl"); e != nil {
		t.Error(e)
	}

	if _, e := template.ParseGlob("doctor/*.tpl"); e != nil {
		t.Error(e)
	}

	if _, e := template.ParseGlob("patient/*.tpl"); e != nil {
		t.Error(e)
	}

	if _, e := template.ParseGlob("plugins/*.tpl"); e != nil {
		t.Error(e)
	}
}