Changeset 18282 in josm


Ignore:
Timestamp:
2021-10-17T14:33:52+02:00 (3 years ago)
Author:
GerdP
Message:

see #21438
Add unit test for tags keys which appear in presets but never with a value, e.g. ref
This should not produce Presets do not contain property key message.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/validation/tests/TagCheckerTest.java

    r17766 r18282  
    391391        assertFalse(TagChecker.containsUnusualUnicodeCharacter("name", "Yuułuʔiłʔatḥ Lands"));
    392392    }
     393
     394    /**
     395     * Non-regression test for <a href="https://josm.openstreetmap.de/ticket/21348">Bug #21348</a>.
     396     * Key ref is in presets but without any value.
     397     * @throws IOException if any I/O error occurs
     398     */
     399    @Test
     400    void testTicket21348() throws IOException {
     401        final List<TestError> errors = test(OsmUtils.createPrimitive("node power=tower ref=12"));
     402        assertEquals(0, errors.size());
     403    }
    393404}
Note: See TracChangeset for help on using the changeset viewer.