This commit is contained in:
alessio 2016-08-18 23:19:21 +02:00
parent c164f3f22a
commit c706be3186

14
realize/app_test.go Normal file
View File

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