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