private static PrefixMapping pmap = ARQConstants.getGlobalPrefixMap() ;
private static void test(String string, String result)
{
Expr expr = ExprUtils.parse(string, pmap) ;
NodeValue nv = expr.eval(null, new FunctionEnvBase()) ;
Node r = NodeFactory.parseNode(result) ;
NodeValue nvr = NodeValue.makeNode(r) ;
assertTrue("Not same value: Expected: "+nvr+" : Actual = "+nv, NodeValue.sameAs(nvr, nv)) ;
// test result must be lexical form exact.
assertEquals(r, nv.asNode()) ;
}