1
0
mirror of https://github.com/DanilaFe/abacus synced 2026-01-10 01:05:20 +00:00

Bring tests up to date.

This commit is contained in:
2017-08-28 12:59:16 -07:00
parent fbc12ec41c
commit e3c37cf10a

View File

@@ -20,12 +20,12 @@ public class TokenizerTests {
private static LexerTokenizer lexerTokenizer = new LexerTokenizer();
private static NumberFunction subtractFunction = new NumberFunction() {
@Override
protected boolean matchesParams(NumberInterface[] params) {
public boolean matchesParams(NumberInterface[] params) {
return params.length == 2;
}
@Override
protected NumberInterface applyInternal(NumberInterface[] params) {
public NumberInterface applyInternal(NumberInterface[] params) {
return params[0].subtract(params[1]);
}
};
@@ -36,12 +36,12 @@ public class TokenizerTests {
0) {
@Override
protected boolean matchesParams(NumberInterface[] params) {
public boolean matchesParams(NumberInterface[] params) {
return true;
}
@Override
protected NumberInterface applyInternal(NumberInterface[] params) {
public NumberInterface applyInternal(NumberInterface[] params) {
return subtractFunction.apply(params);
}
});
@@ -49,12 +49,12 @@ public class TokenizerTests {
0) {
@Override
protected boolean matchesParams(NumberInterface[] params) {
public boolean matchesParams(NumberInterface[] params) {
return true;
}
@Override
protected NumberInterface applyInternal(NumberInterface[] params) {
public NumberInterface applyInternal(NumberInterface[] params) {
return subtractFunction.apply(params);
}
});