diff --git a/realize/app_test.go b/realize/app_test.go new file mode 100644 index 0000000..cff1335 --- /dev/null +++ b/realize/app_test.go @@ -0,0 +1,14 @@ +package realize + +import ( + "testing" + "reflect" +) + +func TestInit(t *testing.T) { + actual := Init() + expected := &App{Name:AppName,Version:AppVersion,Description:AppDescription,Author:AppAuthor,Email:AppEmail} + if !reflect.DeepEqual(actual,expected) { + t.Errorf("Test failed, expected: '%s', got: '%s'", expected, actual) + } +}