Skip to content

Commit de80a62

Browse files
committed
tests
1 parent 91bb932 commit de80a62

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

import/test/test_all.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ require('test_import_stop_area')
1717
require('test_import_station')
1818
require('test_import_switch')
1919
require('test_import_turntable')
20+
require('test_import_landuse')

import/test/test_import_landuse.lua

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ local way = {
1212
}
1313

1414
-- Landuse
15+
1516
osm2pgsql.process_way({
1617
tags = {
1718
landuse = 'railway',
@@ -23,3 +24,15 @@ assert.eq(osm2pgsql.get_and_clear_imported_data(), {
2324
{ way = way },
2425
},
2526
})
27+
28+
osm2pgsql.process_relation({
29+
tags = {
30+
landuse = 'railway',
31+
},
32+
as_multipolygon = function () return way end,
33+
})
34+
assert.eq(osm2pgsql.get_and_clear_imported_data(), {
35+
landuse = {
36+
{ way = way },
37+
},
38+
})

0 commit comments

Comments
 (0)