hatmill/attribute/generated_test.go

15 lines
271 B
Go
Raw Normal View History

2019-05-30 03:33:30 +00:00
package attribute_test
import (
2019-08-31 19:10:29 +00:00
"testing"
2020-05-25 21:18:17 +00:00
"git.codemonkeysoftware.net/b/hatmill/attribute"
2019-05-30 03:33:30 +00:00
)
func TestBool(t *testing.T) {
2020-05-25 21:18:17 +00:00
attrib := attribute.Disabled(true)
2019-08-31 19:10:29 +00:00
if attrib.Value != nil {
t.Fatalf("expected attribute value to be nil, but got %#v", attrib.Value)
}
2019-05-30 03:33:30 +00:00
}