err.println("testComplexArgument");
FunctionEnum funcEnum = FunctionEnum.COMPLEX_ABUNDANCE;
List<BELObject> args = new ArrayList<BELObject>();
Parameter parameter = getInstance().createParameter(null, "value");
args.add(parameter);
Term t = new Term(funcEnum, args);
try {
subject.checkParameterizedTerm(t);
} catch (SemanticWarning se) {
fail("unexpected semantic failure: " + se.getUserFacingMessage());
}
args.clear();
int abundances = random.nextInt(10) + 1;
for (int i = 0; i < abundances; i++) {
FunctionEnum fe = randomFunctionEnum();
while (fe.getReturnType() != ReturnType.ABUNDANCE) {
fe = randomFunctionEnum();
}
args.add(new Term(fe));
}
t = new Term(funcEnum, args);
try {
subject.checkParameterizedTerm(t);
} catch (SemanticWarning se) {
fail("unexpected semantic failure: " + se.getUserFacingMessage());