diff options
author | Christopher Speller <crspeller@gmail.com> | 2018-04-16 05:37:14 -0700 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2018-04-16 08:37:14 -0400 |
commit | 6e2cb00008cbf09e556b00f87603797fcaa47e09 (patch) | |
tree | 3c0eb55ff4226a3f024aad373140d1fb860a6404 /vendor/github.com/nicksnyder/go-i18n/goi18n/merge_command_flat_test.go | |
parent | bf24f51c4e1cc6286885460672f7f449e8c6f5ef (diff) | |
download | chat-6e2cb00008cbf09e556b00f87603797fcaa47e09.tar.gz chat-6e2cb00008cbf09e556b00f87603797fcaa47e09.tar.bz2 chat-6e2cb00008cbf09e556b00f87603797fcaa47e09.zip |
Depenancy upgrades and movign to dep. (#8630)
Diffstat (limited to 'vendor/github.com/nicksnyder/go-i18n/goi18n/merge_command_flat_test.go')
-rw-r--r-- | vendor/github.com/nicksnyder/go-i18n/goi18n/merge_command_flat_test.go | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/vendor/github.com/nicksnyder/go-i18n/goi18n/merge_command_flat_test.go b/vendor/github.com/nicksnyder/go-i18n/goi18n/merge_command_flat_test.go deleted file mode 100644 index caa892d29..000000000 --- a/vendor/github.com/nicksnyder/go-i18n/goi18n/merge_command_flat_test.go +++ /dev/null @@ -1,36 +0,0 @@ -package main - -import "testing" - -func TestMergeExecuteFlat(t *testing.T) { - files := []string{ - "testdata/input/flat/en-us.one.yaml", - "testdata/input/flat/en-us.two.json", - "testdata/input/flat/fr-fr.json", - "testdata/input/flat/ar-ar.one.toml", - "testdata/input/flat/ar-ar.two.json", - } - testFlatMergeExecute(t, files) -} - -func testFlatMergeExecute(t *testing.T, files []string) { - resetDir(t, "testdata/output/flat") - - mc := &mergeCommand{ - translationFiles: files, - sourceLanguage: "en-us", - outdir: "testdata/output/flat", - format: "json", - flat: true, - } - if err := mc.execute(); err != nil { - t.Fatal(err) - } - - expectEqualFiles(t, "testdata/output/flat/en-us.all.json", "testdata/expected/flat/en-us.all.json") - expectEqualFiles(t, "testdata/output/flat/ar-ar.all.json", "testdata/expected/flat/ar-ar.all.json") - expectEqualFiles(t, "testdata/output/flat/fr-fr.all.json", "testdata/expected/flat/fr-fr.all.json") - expectEqualFiles(t, "testdata/output/flat/en-us.untranslated.json", "testdata/expected/flat/en-us.untranslated.json") - expectEqualFiles(t, "testdata/output/flat/ar-ar.untranslated.json", "testdata/expected/flat/ar-ar.untranslated.json") - expectEqualFiles(t, "testdata/output/flat/fr-fr.untranslated.json", "testdata/expected/flat/fr-fr.untranslated.json") -} |