2019-05-30 03:33:30 +00:00
|
|
|
package attribute_test
|
|
|
|
|
|
|
|
import (
|
2019-05-30 03:42:48 +00:00
|
|
|
"gitlab.codemonkeysoftware.net/b/hatmill/attribute"
|
2019-08-31 19:10:29 +00:00
|
|
|
"testing"
|
2019-05-30 03:33:30 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestBool(t *testing.T) {
|
2019-08-31 19:10:29 +00:00
|
|
|
attrib := attribute.Disabled()
|
|
|
|
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
|
|
|
}
|