}
@Test(groups="types")
public void testColumnsInlineArrays()
{
Formula formula = null;
try
{
formula = new Formula("{3;2;1}");
} catch (ParseException e1)
{
Assert.fail("Error while parsing the formula", e1);
}
try
{
formula.initialize(context);
} catch (EvaluationException e)
{
Assert.fail("Initialization Error", e);
}
final TypeValuePair evaluation = formula.evaluateTyped();
Assert.assertNotNull(evaluation);
Assert.assertTrue(evaluation.getType().isFlagSet(Type.ARRAY_TYPE));
final ArrayCallback table = (ArrayCallback)evaluation.getValue();
Assert.assertEquals(table.getColumnCount(), 3);