public static int getCalcFunctionDefaultResultType( int type ) {
    if ( type < 0 || type >= calcDefaultResultType.length ) {
      return ValueMetaInterface.TYPE_NONE;
    }
    return calcDefaultResultType[ type ];
  }
@Test
  public void testGetCalcFunctionDefaultResultType() {
    assertEquals( ValueMetaInterface.TYPE_NONE,
      CalculatorMetaFunction.getCalcFunctionDefaultResultType( Integer.MIN_VALUE ) );
    assertEquals( ValueMetaInterface.TYPE_NONE,
      CalculatorMetaFunction.getCalcFunctionDefaultResultType( Integer.MAX_VALUE ) );
    assertEquals( ValueMetaInterface.TYPE_NONE,
      CalculatorMetaFunction.getCalcFunctionDefaultResultType( -1 ) );
    assertEquals( ValueMetaInterface.TYPE_STRING,
      CalculatorMetaFunction.getCalcFunctionDefaultResultType( CalculatorMetaFunction.CALC_CONSTANT ) );
    assertEquals( ValueMetaInterface.TYPE_NUMBER,
      CalculatorMetaFunction.getCalcFunctionDefaultResultType( CalculatorMetaFunction.CALC_ADD ) );
  }