mirror of
https://github.com/ManyakRus/starter.git
synced 2025-11-25 23:02:22 +02:00
сделал HoursMinutesSeconds{}
This commit is contained in:
@@ -1352,3 +1352,13 @@ func TestStringFromBool(t *testing.T) {
|
||||
t.Errorf("Expected 'true', but got %s", Otvet)
|
||||
}
|
||||
}
|
||||
|
||||
//func TestTime_UnmarshalByte(t *testing.T) {
|
||||
// var Otvet Time
|
||||
// Test := []byte("10:05:01")
|
||||
// err := (&Otvet).UnmarshalByte(Test)
|
||||
// if err != nil {
|
||||
// t.Errorf("TestTime_UnmarshalByte() error: %v", err)
|
||||
// }
|
||||
// t.Log(time.Time(Otvet))
|
||||
//}
|
||||
|
||||
Reference in New Issue
Block a user