File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
src/test/java/com/mapcode Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ language: java
33sudo : false
44
55jdk :
6- - oraclejdk8
6+ - openjdk8
77
88install :
99 - export JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF8"
Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ public void checkInvalidPrecisionFormats() {
8383 LOG .info ("checkInvalidPrecisionFormats" );
8484
8585 // Territory code must be correct syntax.
86+ assertFalse (Mapcode .isValidMapcodeFormat ("" ));
8687 assertFalse (Mapcode .isValidMapcodeFormat ("NL- XX.XX" ));
8788 assertFalse (Mapcode .isValidMapcodeFormat ("US IN XX.XX" ));
8889
Original file line number Diff line number Diff line change @@ -36,6 +36,14 @@ public void emptyTerritoryNumberTest() {
3636 Territory .fromString ("" );
3737 }
3838
39+ @ Test
40+ public void checkConvert () {
41+ LOG .info ("checkConvert" );
42+ final String s1 = "รฉะ ฑง.ดฯง" ;
43+ final String s2 = Mapcode .convertStringToPlainAscii (s1 );
44+ assertEquals ("THA KF.LZF" , s2 );
45+ }
46+
3947 @ Test
4048 public void checkFullName () {
4149 LOG .info ("checkFullName" );
You can’t perform that action at this time.
0 commit comments