Formatted several files

This commit is contained in:
Mike Cifelli 2017-02-06 13:43:27 -05:00
parent 913fd031c6
commit b6d717ec1c
12 changed files with 23 additions and 24 deletions

View File

@ -33,8 +33,7 @@ public class UserDefinedFunctionTester {
public void testNilFunctionToString() {
UserDefinedFunction function = createNoArgumentFunctionThatReturnsNil();
Cons expected = new Cons(new Symbol(FUNCTION_NAME),
new Cons(Nil.getInstance(),
new Cons(Nil.getInstance(), Nil.getInstance())));
new Cons(Nil.getInstance(), new Cons(Nil.getInstance(), Nil.getInstance())));
assertSExpressionsMatch(expected, function.getLambdaExpression());
}

View File

@ -29,6 +29,7 @@ public class CONSTester {
assertSExpressionsMatch(parseString("(1 2 3)"), evaluateString(input));
}
@Test
public void testConsWithTwoLists() {
String input = "(cons '(1 2) '(3 4))";
@ -36,7 +37,6 @@ public class CONSTester {
assertSExpressionsMatch(parseString("((1 2) 3 4)"), evaluateString(input));
}
@Test
public void testConsWithList() {
String input = "(cons nil '(2 3))";