|
@@ -35,9 +35,9 @@ public class AddTests extends AbstractArithmeticTestCase {
|
|
|
int rhs = randomIntBetween((Integer.MIN_VALUE >> 1) - 1, (Integer.MAX_VALUE >> 1) - 1);
|
|
|
int lhs = randomIntBetween((Integer.MIN_VALUE >> 1) - 1, (Integer.MAX_VALUE >> 1) - 1);
|
|
|
return new TestCase(
|
|
|
- Source.EMPTY,
|
|
|
List.of(new TypedData(lhs, DataTypes.INTEGER, "lhs"), new TypedData(rhs, DataTypes.INTEGER, "rhs")),
|
|
|
"AddIntsEvaluator[lhs=Attribute[channel=0], rhs=Attribute[channel=1]]",
|
|
|
+ DataTypes.INTEGER,
|
|
|
equalTo(lhs + rhs)
|
|
|
);
|
|
|
}), new TestCaseSupplier("Long + Long", () -> {
|
|
@@ -45,18 +45,18 @@ public class AddTests extends AbstractArithmeticTestCase {
|
|
|
long rhs = randomLongBetween((Long.MIN_VALUE >> 1) - 1, (Long.MAX_VALUE >> 1) - 1);
|
|
|
long lhs = randomLongBetween((Long.MIN_VALUE >> 1) - 1, (Long.MAX_VALUE >> 1) - 1);
|
|
|
return new TestCase(
|
|
|
- Source.EMPTY,
|
|
|
List.of(new TypedData(lhs, DataTypes.LONG, "lhs"), new TypedData(rhs, DataTypes.LONG, "rhs")),
|
|
|
"AddLongsEvaluator[lhs=Attribute[channel=0], rhs=Attribute[channel=1]]",
|
|
|
+ DataTypes.LONG,
|
|
|
equalTo(lhs + rhs)
|
|
|
);
|
|
|
}), new TestCaseSupplier("Double + Double", () -> {
|
|
|
double rhs = randomDouble();
|
|
|
double lhs = randomDouble();
|
|
|
return new TestCase(
|
|
|
- Source.EMPTY,
|
|
|
List.of(new TypedData(lhs, DataTypes.DOUBLE, "lhs"), new TypedData(rhs, DataTypes.DOUBLE, "rhs")),
|
|
|
"AddDoublesEvaluator[lhs=Attribute[channel=0], rhs=Attribute[channel=1]]",
|
|
|
+ DataTypes.DOUBLE,
|
|
|
equalTo(lhs + rhs)
|
|
|
);
|
|
|
})/*, new TestCaseSupplier("ULong + ULong", () -> {
|