Ignore:
Timestamp:
2020-03-10T22:43:23+01:00 (4 years ago)
Author:
Don-vip
Message:

see #18856 - override numbering format as follows:

  • Eastern Arabic(-Indic) numerals if Arabic language is used in Bahrain, Qatar, Kuwait, Oman, Lebanon, United Arab Emirates, Jordan, Syria, Yemen, Saudi Arabia, Iraq, Egypt
  • Khmer numerals if Khmer language is used in Cambodge
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/tools/TerritoriesTest.java

    r16032 r16109  
    44import static java.util.Collections.singleton;
    55import static org.junit.Assert.assertEquals;
     6import static org.junit.Assert.assertNull;
    67import static org.junit.Assert.assertTrue;
    78
     
    9091        assertTrue(error, error.contains(": Invalid token=EOF at (line no=3,"));
    9192    }
     93
     94    /**
     95     * Unit test of {@link Territories#getCustomTags}
     96     */
     97    @Test
     98    public void testGetCustomTags() {
     99        assertNull(Territories.getCustomTags(null));
     100        assertNull(Territories.getCustomTags("foo"));
     101        assertEquals("arab", Territories.getCustomTags("BH").get("ldml:nu:ar"));
     102    }
    92103}
Note: See TracChangeset for help on using the changeset viewer.