Assert.assertTrue(subtract.getArg2() instanceof NodeValueInteger);
}
@Test
public void test_function_expansion_08() {
Expr takeaway = new E_Subtract(new ExprVar("x"), new ExprVar("y"));
List<Var> args = new ArrayList<Var>();
args.add(Var.alloc("x"));
args.add(Var.alloc("y"));
UserDefinedFunctionFactory.getFactory().add("http://example/takeaway", takeaway, args);
//Test that with preserveDependencies set to false (the default) that the definition is expanded appropriately
ExprList altArgs = new ExprList();
altArgs.add(new ExprVar("a"));
altArgs.add(new ExprVar("b"));
ArrayList<Var> defArgs = new ArrayList<Var>();
defArgs.add(Var.alloc("a"));
defArgs.add(Var.alloc("b"));
Expr test = new E_Function("http://example/takeaway", altArgs);
UserDefinedFunctionFactory.getFactory().add("http://example/test", test, defArgs);