Formatted several files
This commit is contained in:
parent
913fd031c6
commit
b6d717ec1c
|
@ -33,8 +33,7 @@ public class UserDefinedFunctionTester {
|
||||||
public void testNilFunctionToString() {
|
public void testNilFunctionToString() {
|
||||||
UserDefinedFunction function = createNoArgumentFunctionThatReturnsNil();
|
UserDefinedFunction function = createNoArgumentFunctionThatReturnsNil();
|
||||||
Cons expected = new Cons(new Symbol(FUNCTION_NAME),
|
Cons expected = new Cons(new Symbol(FUNCTION_NAME),
|
||||||
new Cons(Nil.getInstance(),
|
new Cons(Nil.getInstance(), new Cons(Nil.getInstance(), Nil.getInstance())));
|
||||||
new Cons(Nil.getInstance(), Nil.getInstance())));
|
|
||||||
|
|
||||||
assertSExpressionsMatch(expected, function.getLambdaExpression());
|
assertSExpressionsMatch(expected, function.getLambdaExpression());
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,6 +29,7 @@ public class CONSTester {
|
||||||
|
|
||||||
assertSExpressionsMatch(parseString("(1 2 3)"), evaluateString(input));
|
assertSExpressionsMatch(parseString("(1 2 3)"), evaluateString(input));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testConsWithTwoLists() {
|
public void testConsWithTwoLists() {
|
||||||
String input = "(cons '(1 2) '(3 4))";
|
String input = "(cons '(1 2) '(3 4))";
|
||||||
|
@ -36,7 +37,6 @@ public class CONSTester {
|
||||||
assertSExpressionsMatch(parseString("((1 2) 3 4)"), evaluateString(input));
|
assertSExpressionsMatch(parseString("((1 2) 3 4)"), evaluateString(input));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testConsWithList() {
|
public void testConsWithList() {
|
||||||
String input = "(cons nil '(2 3))";
|
String input = "(cons nil '(2 3))";
|
||||||
|
|
Loading…
Reference in New Issue