2016-12-20 12:03:37 -05:00
|
|
|
package function;
|
|
|
|
|
|
|
|
import static org.junit.Assert.assertTrue;
|
|
|
|
|
|
|
|
import org.junit.Test;
|
|
|
|
|
2017-11-12 09:42:25 -05:00
|
|
|
import sexpression.Cons;
|
|
|
|
import sexpression.SExpression;
|
2016-12-20 12:03:37 -05:00
|
|
|
|
2017-03-15 13:37:39 -04:00
|
|
|
public class LispFunctionTest {
|
2016-12-20 12:03:37 -05:00
|
|
|
|
|
|
|
@Test
|
2017-03-01 11:11:59 -05:00
|
|
|
public void evaluateArguments() {
|
2016-12-20 12:03:37 -05:00
|
|
|
LispFunction lispFunction = new LispFunction() {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public SExpression call(Cons argList) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2017-03-10 15:08:42 -05:00
|
|
|
assertTrue(lispFunction.isArgumentListEvaluated());
|
2016-12-20 12:03:37 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|