File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
base/src/test/java/net/time4j/format Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments