assertResult(e, "A2", 32);
e.set("D5:E6", "=TestRange(A1)");
}
public void testAliases() throws Exception {
IterationEngine e = new IterationEngine(new BasicEngineProvider());
e.setNamespace("Sheet1");
e.addAlias("x", Range.valueOf("A1:B3"));
e.addAlias("alias1", Range.valueOf("A1"));
e.set("A1", "45");
e.set("B1", "=alias1:x");
e.set("B2", "=x");
assertResult(e, "B1", 45);
assertResult(e, "B2", 45);
}