logo separator

[mkgmap-dev] Commit: r2353: A few tests for WanMil's style functions.

From WanMil wmgcnfg at web.de on Wed Oct 31 15:55:34 GMT 2012

>
> Version 2353 was commited by steve on 2012-10-31 14:15:43 +0000 (Wed, 31 Oct 2012)
>
> A few tests for WanMil's style functions.

Thanks for adding these tests.

Do you think a "negative" test would also be good?

@Test
public void testNoFunctionParameters() {
	// a parameter in a function is not allowed yet
	try {
		// this should throw a SyntaxException
		makeRuleSet("A=B & length(a) > 91 [0x5]");
		assertTrue("Function with parameters are not allowed", false);
	} catch (SyntaxException exp) {
	}
}

WanMil



More information about the mkgmap-dev mailing list