From e3cedf5de7d6122008c81e82f8a88ac8e05ef89a Mon Sep 17 00:00:00 2001 From: Brandon Dyck Date: Sat, 31 Aug 2019 13:10:29 -0600 Subject: [PATCH] Simplified TestBool --- attribute/generated_test.go | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/attribute/generated_test.go b/attribute/generated_test.go index 6352821..a8a49dd 100644 --- a/attribute/generated_test.go +++ b/attribute/generated_test.go @@ -1,19 +1,13 @@ package attribute_test import ( - "testing" - - "gitlab.codemonkeysoftware.net/b/hatmill" "gitlab.codemonkeysoftware.net/b/hatmill/attribute" + "testing" ) -func testAttribValue(t *testing.T, attrib hatmill.Attrib, expectedValue string) { - t.Helper() - if attrib.ValueString() != expectedValue { - t.Fatalf("expected attribute value to be %#v, but got %#v", expectedValue, attrib.ValueString()) +func TestBool(t *testing.T) { + attrib := attribute.Disabled() + if attrib.Value != nil { + t.Fatalf("expected attribute value to be nil, but got %#v", attrib.Value) } } - -func TestBool(t *testing.T) { - testAttribValue(t, attribute.Disabled(), "") -}