Skip to content

Commit beb454c

Browse files
committed
Check that missing tags return false
1 parent b54281d commit beb454c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test-parser.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ describe("test parser functions with tags", function()
131131
assert.is_true(RUN([[ "amenity" = 'restaurant' ]]))
132132
assert.is_true(RUN([[ "name" != 'bar' ]]))
133133
assert.is_true(RUN([[ "wheelchair" ]]))
134+
assert.is_false(RUN([[ not "wheelchair" ]]))
134135
assert.is_false(RUN([[ "landuse" ]]))
136+
assert.is_true(RUN([[ not "landuse" ]]))
135137
end)
136138

137139
end)

0 commit comments

Comments
 (0)