[josm-dev] assertMatch and assertNoMatch

Vincent Privat vincent.privat at gmail.com
Thu Oct 23 19:17:00 UTC 2014

They do what you think.
See http://josm.openstreetmap.de/ticket/10206 : they were designed for unit
tests but can be enabled at runtime with an advanced property.
I tend to skip adding these rules for basic cases but it's still
interesting for complex ones.

2014-10-23 1:03 GMT+02:00 simson.gertrud at gmail.com <simson.gertrud at gmail.com

> Hi,
> can someone please explain me "assertMatch" and "assertNoMatch" in mapcss
> validator files and/or add the explanation at
> http://josm.openstreetmap.de/wiki/Help/Validator/MapCSSTagChecker ?
> If I understand correct, you can give there examples, which should
> (assertMatch) or should not (assertNoMatch) match the used selector? And
> this is used for internal tests if the rules work correct? Should there
> always be atleast one assertMatch and one assertNoMatch when adding new
> validator tests?
> Best Regards
> Stefan
> (Klumbumbus)
> _______________________________________________
> josm-dev mailing list
> josm-dev at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/josm-dev

More information about the josm-dev mailing list