realize/realize/app_test.go

15 lines
328 B
Go

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)
}
}