diff options
author | tomocy <tomocy.dev@gmail.com> | 2019-04-24 06:28:33 +0300 |
---|---|---|
committer | tomocy <tomocy.dev@gmail.com> | 2019-04-24 06:28:33 +0300 |
commit | 265f98b7cc46cfc18a82d9aa3b2109e37b8f49db (patch) | |
tree | dae8ef916325d9233ae28314ed41cce6605c9aba | |
parent | 33f4c7152ac47dc38c7628ccbb28825c8e6de103 (diff) |
add TestFmtTimeFull of ja
-rw-r--r-- | ja/ja_test.go | 26 |
1 files 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 '<nil>' Got '%s'", err) - // } + loc, err := time.LoadLocation("Asia/Tokyo") + if err != nil { + t.Errorf("Expected '<nil>' 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() |