new Guide("a4", "?: adj3 adj1 adj2"), // a4 = adj3 > 0 ? adj1 : adj2
new Guide("a5", "abs -2"),
};
CustomGeometry geom = new CustomGeometry(CTCustomGeometry2D.Factory.newInstance());
Context ctx = new Context(geom, null, null);
for(Formula fmla : ops) {
ctx.evaluate(fmla);
}
assertEquals(100.0, ctx.getValue("adj1"));
assertEquals(200.0, ctx.getValue("adj2"));
assertEquals(1.0, ctx.getValue("a1"));
assertEquals(101.0, ctx.getValue("a2"));
assertEquals(1.5, ctx.getValue("a3"));
assertEquals(200.0, ctx.getValue("a4"));
assertEquals(2.0, ctx.getValue("a5"));
}