Ignore:
Timestamp:
2019-11-30T18:25:05+01:00 (5 years ago)
Author:
donvip
Message:

fix #josm18370 - AIOOBE at IndoorLevel.isPartOfWorkingLevel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/indoorhelper/test/unit/model/IndoorLevelTest.java

    r34309 r35240  
    1717    @Test
    1818    public void testIsPartOfWorkingLevel() {
     19        assertTrue(IndoorLevel.isPartOfWorkingLevel("-3--1", -3));
     20        assertTrue(IndoorLevel.isPartOfWorkingLevel("-3--1", -2));
     21        assertTrue(IndoorLevel.isPartOfWorkingLevel("-3--1", -1));
     22        assertFalse(IndoorLevel.isPartOfWorkingLevel("-3--1", 0));
     23
     24        assertTrue(IndoorLevel.isPartOfWorkingLevel("-1;0;1", -1));
     25        assertTrue(IndoorLevel.isPartOfWorkingLevel("-1;0;1", 0));
     26        assertTrue(IndoorLevel.isPartOfWorkingLevel("-1;0;1", 1));
     27
    1928        assertFalse(IndoorLevel.isPartOfWorkingLevel("1;2", 0));
    2029        assertTrue(IndoorLevel.isPartOfWorkingLevel("1;2", 1));
Note: See TracChangeset for help on using the changeset viewer.