use of func.lib.StringStyleFileLoader in project mkgmap by openstreetmap.
the class RuleFileReaderTest method testIncludeFileQuoted.
@Test
public void testIncludeFileQuoted() {
StyleFileLoader loader = new StringStyleFileLoader(new String[][] { { "lines", "include \n 'inc file' \n;" }, { "inc file", "highway=secondary [0x3]" } });
RuleSet rs = makeRuleSet(loader);
Element el = new Way(1);
el.addTag("highway", "secondary");
GType type = getFirstType(rs, el);
assertNotNull(type);
assertEquals(3, type.getType());
}
Aggregations