19 lines
418 B
Kotlin
19 lines
418 B
Kotlin
package function
|
|
|
|
import org.assertj.core.api.Assertions.assertThat
|
|
import org.junit.jupiter.api.Test
|
|
import sexpression.Cons
|
|
import sexpression.Nil
|
|
|
|
class LispFunctionTest {
|
|
|
|
@Test
|
|
fun `arguments are evaluated`() {
|
|
val lispFunction = object : LispFunction() {
|
|
override fun call(argumentList: Cons) = Nil
|
|
}
|
|
|
|
assertThat(lispFunction.isArgumentListEvaluated).isTrue()
|
|
}
|
|
}
|