Skip to content

Commit

Permalink
Version 8.6.0.
Browse files Browse the repository at this point in the history
Merged turkish translation, added minimal tests for it.
  • Loading branch information
rluiten committed May 7, 2017
1 parent 76c7f66 commit a0bb61d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions elm-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"Date.Extra.I18n.I_ja_jp",
"Date.Extra.I18n.I_de_de",
"Date.Extra.I18n.I_ru_ru",
"Date.Extra.I18n.I_tr_tr",
"Date.Extra.Config.Configs",
"Date.Extra.Config.Config_en_au",
"Date.Extra.Config.Config_en_us",
Expand All @@ -41,6 +42,7 @@
"Date.Extra.Config.Config_ja_jp",
"Date.Extra.Config.Config_de_de",
"Date.Extra.Config.Config_ru_ru",
"Date.Extra.Config.Config_tr_tr",
"Date.Extra.Field"
],
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions src/Date/Extra/Utils.elm
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ starting from startDate.
Now adds 1 day if dayCount is +ve to create day list.
Now subtracts 1 day if dayCount is -ve to create day list.
This could be made much faster by using `daysFromCivil`
and not using underlying date system at all I believe.
-}
dayList : Int -> Date -> List Date
dayList dayCount startDate =
Expand Down
10 changes: 10 additions & 0 deletions tests/Date/Extra/ConfigTests.elm
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import Date.Extra.Config.Config_et_ee as Config_et_ee
import Date.Extra.Config.Config_ja_jp as Config_ja_jp
import Date.Extra.Config.Config_ru_ru as Config_ru_ru
import Date.Extra.Config.Config_de_de as Config_de_de
import Date.Extra.Config.Config_tr_tr as Config_tr_tr
import Date.Extra.Config.Configs as Configs


Expand Down Expand Up @@ -71,6 +72,10 @@ config_de_de =
Config_de_de.config


config_tr_tr =
Config_tr_tr.config


tests : Test
tests =
describe "Date.Config tests"
Expand Down Expand Up @@ -149,4 +154,9 @@ tests =
Expect.equal
config_de_de.format
(Configs.getConfig "de_de").format
, test "getConfig tr_tr" <|
\() ->
Expect.equal
config_tr_tr.format
(Configs.getConfig "tr_tr").format
]
7 changes: 7 additions & 0 deletions tests/Date/Extra/FormatTests.elm
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import Date.Extra.Config.Config_et_ee as Config_et_ee
import Date.Extra.Config.Config_ja_jp as Config_ja_jp
import Date.Extra.Config.Config_ru_ru as Config_ru_ru
import Date.Extra.Config.Config_de_de as Config_de_de
import Date.Extra.Config.Config_tr_tr as Config_tr_tr
import Date.Extra.Period as DPeriod exposing (Period(Hour))


Expand Down Expand Up @@ -76,6 +77,10 @@ config_de_de =
Config_de_de.config


config_tr_tr =
Config_tr_tr.config


tests : Test
tests =
describe "Date.Format tests"
Expand Down Expand Up @@ -268,6 +273,8 @@ formatConfigTestCases =
, ( "Config_ru_ru time idiom", "05:53", config_ru_ru, config_ru_ru.format.time, aTestTime5 )
, ( "Config_de_de date idiom", "5. August 2014", config_de_de, config_de_de.format.date, aTestTime5 )
, ( "Config_de_de longDate idiom", "Dienstag, 5. August 2014", config_de_de, config_de_de.format.longDate, aTestTime5 )
, ( "Config_tr_tr date idiom", "05.08.2014", config_tr_tr, config_tr_tr.format.date, aTestTime5 )
, ( "Config_tr_tr longDate idiom", "05 Ağustos 2014 Salı", config_tr_tr, config_tr_tr.format.longDate, aTestTime5 )
]


Expand Down

0 comments on commit a0bb61d

Please sign in to comment.