testinit
This commit is contained in:
parent
c164f3f22a
commit
c706be3186
|
@ -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)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue