Clean up code
This commit is contained in:
parent
d95b5cc46f
commit
7416e0e163
|
@ -3,13 +3,12 @@ package function.builtin
|
||||||
import function.ArgumentValidator
|
import function.ArgumentValidator
|
||||||
import function.FunctionNames
|
import function.FunctionNames
|
||||||
import function.LispFunction
|
import function.LispFunction
|
||||||
|
import function.builtin.Eval.Companion.applyFunction
|
||||||
|
import function.builtin.Eval.Companion.lookupFunctionOrLambda
|
||||||
import sexpression.Cons
|
import sexpression.Cons
|
||||||
import sexpression.SExpression
|
import sexpression.SExpression
|
||||||
import table.FunctionTable
|
import table.FunctionTable
|
||||||
|
|
||||||
import function.builtin.Eval.Companion.applyFunction
|
|
||||||
import function.builtin.Eval.Companion.lookupFunctionOrLambda
|
|
||||||
|
|
||||||
@FunctionNames("APPLY")
|
@FunctionNames("APPLY")
|
||||||
class Apply(name: String) : LispFunction() {
|
class Apply(name: String) : LispFunction() {
|
||||||
|
|
||||||
|
|
|
@ -6,10 +6,12 @@ import function.ArgumentValidator.TooManyArgumentsException
|
||||||
import org.junit.jupiter.api.Assertions.assertThrows
|
import org.junit.jupiter.api.Assertions.assertThrows
|
||||||
import org.junit.jupiter.api.Test
|
import org.junit.jupiter.api.Test
|
||||||
import sexpression.Symbol
|
import sexpression.Symbol
|
||||||
|
import testutil.LispTestInstance
|
||||||
import testutil.SymbolAndFunctionCleaner
|
import testutil.SymbolAndFunctionCleaner
|
||||||
import testutil.TestUtilities.assertSExpressionsMatch
|
import testutil.TestUtilities.assertSExpressionsMatch
|
||||||
import testutil.TestUtilities.evaluateString
|
import testutil.TestUtilities.evaluateString
|
||||||
|
|
||||||
|
@LispTestInstance
|
||||||
class FuseTest : SymbolAndFunctionCleaner() {
|
class FuseTest : SymbolAndFunctionCleaner() {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
@ -4,6 +4,7 @@ import function.ArgumentValidator.TooManyArgumentsException
|
||||||
import function.builtin.Gensym.Companion.GENSYM_PREFIX
|
import function.builtin.Gensym.Companion.GENSYM_PREFIX
|
||||||
import org.junit.jupiter.api.Assertions.assertThrows
|
import org.junit.jupiter.api.Assertions.assertThrows
|
||||||
import org.junit.jupiter.api.Test
|
import org.junit.jupiter.api.Test
|
||||||
|
import testutil.LispTestInstance
|
||||||
import testutil.SymbolAndFunctionCleaner
|
import testutil.SymbolAndFunctionCleaner
|
||||||
import testutil.TestUtilities.assertSExpressionsDoNotMatch
|
import testutil.TestUtilities.assertSExpressionsDoNotMatch
|
||||||
import testutil.TestUtilities.assertSExpressionsMatch
|
import testutil.TestUtilities.assertSExpressionsMatch
|
||||||
|
@ -11,6 +12,7 @@ import testutil.TestUtilities.evaluateString
|
||||||
import testutil.TypeAssertions.assertSymbol
|
import testutil.TypeAssertions.assertSymbol
|
||||||
import token.TokenFactory.BadCharacterException
|
import token.TokenFactory.BadCharacterException
|
||||||
|
|
||||||
|
@LispTestInstance
|
||||||
class GensymTest : SymbolAndFunctionCleaner() {
|
class GensymTest : SymbolAndFunctionCleaner() {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue