head 1.1; access; symbols; locks strick:1.1; strict; comment @# @; 1.1 date 2012.10.01.07.47.09; author strick; state Exp; branches; next ; desc @@ 1.1 log @/dev/null @ text @package ht import "testing" import "fmt" func Test1(t *testing.T) { var x Ht = Tag(`a`, Attrs(`b`, `2`, `c`, `3`), Cat(`foo`)) var actual string = x.String() expect := `foo` if (expect != actual) { fmt.Printf("expect: %#v\n", expect) fmt.Printf("actual: %#v\n", actual) t.Fail() } } @