Skip to content

Commit

Permalink
fix 8X for french language (#51)
Browse files Browse the repository at this point in the history
fix 8X for french language
  • Loading branch information
moul authored Aug 13, 2019
2 parents 72b0a3b + 262b212 commit 8419b73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion fr-fr.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ func IntegerToFrFr(input int) string {
words = append(words, frenchTens[tens]+"s")
break
default:
words = append(words, frenchTens[tens], frenchUnits[units])
word := fmt.Sprintf("%s-%s", frenchTens[tens], frenchUnits[units])
words = append(words, word)
break
}
break
Expand Down
6 changes: 3 additions & 3 deletions fr-fr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ func TestIntegerToFrFr(t *testing.T) {
73: "soixante-treize",
79: "soixante-dix-neuf",
80: "quatre-vingts",
81: "quatre-vingt un",
82: "quatre-vingt deux",
81: "quatre-vingt-un",
82: "quatre-vingt-deux",
90: "quatre-vingt-dix",
91: "quatre-vingt-onze",
92: "quatre-vingt-douze",
Expand Down Expand Up @@ -65,7 +65,7 @@ func TestIntegerToFrFr(t *testing.T) {
4000000: "quatre millions",
5000000: "cinq millions",
100100100: "cent millions cent mille cent",
123456789: "cent vingt-trois millions quatre cent cinquante-six mille sept cent quatre-vingt neuf",
123456789: "cent vingt-trois millions quatre cent cinquante-six mille sept cent quatre-vingt-neuf",
500500500: "cinq cents millions cinq cents mille cinq cents",
606606606: "six cent six millions six cent six mille six cent six",
999000000: "neuf cent quatre-vingt-dix-neuf millions",
Expand Down

0 comments on commit 8419b73

Please sign in to comment.