1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- package mhayaTime
- import (
- "testing"
- )
- func TestMhayaTime_SetYear(t *testing.T) {
- now := Now()
- now.SetYear(2012)
- t.Logf("result = %v", now.ToDateTimeFormat())
- }
- func TestMhayaTime_SetMonth(t *testing.T) {
- now := Now()
- now.SetMonth(12)
- t.Logf("result = %v", now.ToDateTimeFormat())
- }
- func TestMhayaTime_SetDay(t *testing.T) {
- now := Now()
- now.SetDay(12)
- t.Logf("result = %v", now.ToDateTimeFormat())
- }
- func TestMhayaTime_SetHour(t *testing.T) {
- now := Now()
- now.SetHour(0)
- t.Logf("result = %v", now.ToDateTimeFormat())
- }
- func TestMhayaTime_SetMinute(t *testing.T) {
- now := Now()
- now.SetMinute(0)
- t.Logf("result = %v", now.ToDateTimeFormat())
- }
- func TestMhayaTime_SetSecond(t *testing.T) {
- now := Now()
- now.SetSecond(59)
- t.Logf("result = %v", now.ToDateTimeFormat())
- now.SetSecond(60)
- t.Logf("result = %v", now.ToDateTimeFormat())
- }
|