Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/locales.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomocy <tomocy.dev@gmail.com>2019-04-24 06:30:04 +0300
committertomocy <tomocy.dev@gmail.com>2019-04-24 06:30:04 +0300
commit7ff285724ce8673d3706b9bd37c6f0e6a4bf8975 (patch)
treeab53c709de9c1c7e001ae7f9558e6b92b0ba2546
parent265f98b7cc46cfc18a82d9aa3b2109e37b8f49db (diff)
add TestFmtTimeLong of ja
-rw-r--r--ja/ja_test.go24
1 files changed, 12 insertions, 12 deletions
diff --git a/ja/ja_test.go b/ja/ja_test.go
index b32ef272..0c490058 100644
--- a/ja/ja_test.go
+++ b/ja/ja_test.go
@@ -669,23 +669,23 @@ func TestFmtTimeFull(t *testing.T) {
func TestFmtTimeLong(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)
+ }
tests := []struct {
t time.Time
expected string
}{
- // {
- // t: time.Date(2016, 02, 03, 9, 5, 1, 0, loc),
- // expected: "9:05:01 am EST",
- // },
- // {
- // t: time.Date(2016, 02, 03, 20, 5, 1, 0, loc),
- // expected: "8:05:01 pm EST",
- // },
+ {
+ t: time.Date(2016, 02, 03, 9, 5, 1, 0, loc),
+ expected: "9:05:01 JST",
+ },
+ {
+ t: time.Date(2016, 02, 03, 20, 5, 1, 0, loc),
+ expected: "20:05:01 JST",
+ },
}
trans := New()