Reorder assertion arguments
This commit is contained in:
parent
4ccdf9c959
commit
cd551c5a1c
|
@ -84,12 +84,12 @@ public final class TestUtilities {
|
||||||
return new Cons(expressionList[0], rest);
|
return new Cons(expressionList[0], rest);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void assertSExpressionsMatch(SExpression one, SExpression two) {
|
public static void assertSExpressionsMatch(SExpression expected, SExpression actual) {
|
||||||
assertThat(one.toString(), is(two.toString()));
|
assertThat(actual.toString(), is(expected.toString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void assertSExpressionsDoNotMatch(SExpression one, SExpression two) {
|
public static void assertSExpressionsDoNotMatch(SExpression unexpected, SExpression actual) {
|
||||||
assertThat(one.toString(), not(two.toString()));
|
assertThat(actual.toString(), not(unexpected.toString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void assertIsErrorWithMessage(LispException e) {
|
public static void assertIsErrorWithMessage(LispException e) {
|
||||||
|
|
Loading…
Reference in New Issue