Skip to content

Commit 8284886

Browse files
committed
more testing
see issue #985
1 parent 7fbd8ec commit 8284886

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

base/src/test/java/net/time4j/format/MandarinNumberTest.java

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public void mandarin() {
3232
is("零〇一二兩三四五六七八九十百千"));
3333
assertThat(
3434
NumberSystem.CHINESE_MANDARIN.getCode(),
35-
is("hans"));
35+
is("mandarin"));
3636
}
3737

3838
@Test
@@ -68,6 +68,22 @@ public void mandarin_1230() {
6868
is(1230));
6969
}
7070

71+
@Test
72+
public void simplified_1230() {
73+
assertThat(
74+
NumberSystem.CHINESE_SIMPLIFIED.toNumeral(1230),
75+
is("一千二百三十"));
76+
assertThat(
77+
NumberSystem.CHINESE_SIMPLIFIED.toInteger("一千兩百三十"),
78+
is(1230));
79+
assertThat(
80+
NumberSystem.CHINESE_SIMPLIFIED.toInteger("一千二百三十"),
81+
is(1230));
82+
assertThat(
83+
NumberSystem.CHINESE_SIMPLIFIED.getCode(),
84+
is("hans"));
85+
}
86+
7187
@Test
7288
public void mandarin_1035() {
7389
assertThat(

0 commit comments

Comments
 (0)