﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
17425	MapCSS assert, support test with context	frodrigo	team	"For Osmose I run an other MapCSS validation implementation.
In some cases I need to run assert with context.
I add the assertNoMatchWithContext and assertMatchWithContext, and keep it on my side for now.

But now there is a similar need in the core JOSM MapCSS, territories.mapcss now contains tests (and this tests fails on my side).

{{{
#!mapcss
*[name =~ /(?i).*Strasse.*/][name !~ /(?i).*Strasser.*/][inside(""DE,AT"")]
}}}

Territories selector inside() and outside() require context to be tested.

On my implementation I have added think like this:
{{{
#!mapcss
assertNoMatchWithContext:list('node place=hamlet name=""ZA Sud Loire""',""inside=FR"")
}}}

Just for record, I have also language
{{{
#!mapcss
*[name=~/ي/][language(""fa"")] {
  ...
  assertMatchWithContext:list('node name=""روابط عمومي مجتمع مس شهربابك""','language=fa')
}
}}}"	enhancement	new	normal		Core validator			mapcss	
