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:34:33 +0300
committertomocy <tomocy.dev@gmail.com>2019-04-24 06:34:33 +0300
commit7df88076ebb1ad68cae97bb9ce4749bd0f26f883 (patch)
tree786ec7c3f54e648e7b7aad004c865ce04f6c7688
parentd6130cbc65644c15492cb1eaf4a80198b7048059 (diff)
add TestFmtDateShort of ja
-rw-r--r--ja/ja_test.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/ja/ja_test.go b/ja/ja_test.go
index fe195f82..6aea6bbc 100644
--- a/ja/ja_test.go
+++ b/ja/ja_test.go
@@ -822,14 +822,14 @@ func TestFmtDateShort(t *testing.T) {
t time.Time
expected string
}{
- // {
- // t: time.Date(2016, 02, 03, 9, 0, 1, 0, time.UTC),
- // expected: "2/3/16",
- // },
- // {
- // t: time.Date(-500, 02, 03, 9, 0, 1, 0, time.UTC),
- // expected: "2/3/500",
- // },
+ {
+ t: time.Date(2016, 02, 03, 9, 0, 1, 0, time.UTC),
+ expected: "2016/02/03",
+ },
+ {
+ t: time.Date(-500, 02, 03, 9, 0, 1, 0, time.UTC),
+ expected: "500/02/03",
+ },
}
trans := New()