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
|
2018-01-12 21:02:29 -05:00
|
|
|
public SExpression call(Cons argumentList) {
|
2016-12-20 12:03:37 -05:00
|
|
|
return null;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2017-03-10 15:08:42 -05:00
|
|
|
assertTrue(lispFunction.isArgumentListEvaluated());
|
2016-12-20 12:03:37 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|