From 265f98b7cc46cfc18a82d9aa3b2109e37b8f49db Mon Sep 17 00:00:00 2001 From: tomocy Date: Wed, 24 Apr 2019 12:28:33 +0900 Subject: add TestFmtTimeFull of ja --- ja/ja_test.go | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/ja/ja_test.go b/ja/ja_test.go index 021fb49d..b32ef272 100644 --- a/ja/ja_test.go +++ b/ja/ja_test.go @@ -636,25 +636,25 @@ func TestMonthsWide(t *testing.T) { func TestFmtTimeFull(t *testing.T) { - // loc, err := time.LoadLocation("America/Toronto") - // if err != nil { - // t.Errorf("Expected '' Got '%s'", err) - // } + loc, err := time.LoadLocation("Asia/Tokyo") + if err != nil { + t.Errorf("Expected '' Got '%s'", err) + } - // fixed := time.FixedZone("OTHER", -4) + fixed := time.FixedZone("OTHER", -4) tests := []struct { t time.Time expected string }{ - // { - // t: time.Date(2016, 02, 03, 9, 5, 1, 0, loc), - // expected: "9:05:01 am Eastern Standard Time", - // }, - // { - // t: time.Date(2016, 02, 03, 20, 5, 1, 0, fixed), - // expected: "8:05:01 pm OTHER", - // }, + { + t: time.Date(2016, 02, 03, 9, 5, 1, 0, loc), + expected: "9時05分01秒 日本標準時", + }, + { + t: time.Date(2016, 02, 03, 20, 5, 1, 0, fixed), + expected: "20時05分01秒 OTHER", + }, } trans := New() -- cgit v1.2.3