Code example for Bidi

Methods: toString

0
 
    Bidi bd;
 
    public void testToString() { 
        try { 
            bd = new Bidi("bidi", 173);
            assertNotNull("Bidi representation is null", bd.toString());
        } catch (Exception e) {
            fail("Unexpected exception " + e.toString());
        } 
    } 
 
    public void testCreateLineBidi_AndroidFailure() { 
        // This is a difference between ICU4C and the RI. ICU4C insists that 'limit' is strictly 
        // greater than 'start'. We have to paper over this in our Java code. 
        Bidi bidi = new Bidi("str", Bidi.DIRECTION_RIGHT_TO_LEFT);
        bidi.createLineBidi(2, 2);
    } 
 
    public void testGetRunLevelLInt() { 
        bd = new Bidi("text", Bidi.DIRECTION_LEFT_TO_RIGHT);