15 lines
256 B
Go
15 lines
256 B
Go
package lllaetu_data
|
|
|
|
import (
|
|
"fmt"
|
|
"reflect"
|
|
)
|
|
import "testing"
|
|
|
|
func TestTodayStruct(t *testing.T) {
|
|
today := Today()
|
|
s := reflect.ValueOf(&today).Elem()
|
|
if fmt.Sprint(s.Type()) != "lllaetu_data.Day" {
|
|
t.Error("Bad structure has been got.")
|
|
}
|
|
}
|