use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.
the class Multiply method testCombine_1_2_uniteWithEmpty_2.
@Test
public void testCombine_1_2_uniteWithEmpty_2() {
Values values = createColumn(2).unite();
values = values.multiply(createColumn(5, 6).unite());
List<Object[]> expected = new ArrayList<Object[]>();
expected.add(new Object[] { 2, 5 });
expected.add(new Object[] { 2, 6 });
ValuesComparison.compare(values, expected);
}
use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.
the class Multiply method testCombineCombine_2_1.
@Test
public void testCombineCombine_2_1() {
Values values = createColumn(1);
values = values.multiply(createColumn(2));
values = values.multiply(createColumn(3));
List<Object[]> expected = new ArrayList<Object[]>();
expected.add(new Object[] { 1, 2, 3 });
ValuesComparison.compare(values, expected);
}
use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.
the class Multiply method testMultiplyUtil_Null.
@Test
public void testMultiplyUtil_Null() {
Values values = multiply((Values[]) null);
List<Object[]> expected = new ArrayList<Object[]>();
expected.add(new Object[] { null });
ValuesComparison.compare(values, expected);
}
use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.
the class Multiply method testCombineCombine_3_1_cache.
@Test
public void testCombineCombine_3_1_cache() {
Values values_0 = createColumn(0);
Values values_1 = createColumn(1, 2);
Values values_2 = createColumn(3, 4);
Values values_3 = createColumn(5, 6);
values_2 = values_2.multiply(values_3);
values_1 = values_1.multiply(values_2);
values_0 = values_0.multiply(values_1);
ValuesComparison.checkCachedReturnsTheSame(values_0);
}
use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.
the class Multiply method test_10.
@Test
public void test_10() {
Values values = createColumn(1).multiply(createColumn(2, 3)).multiply(createColumn(3, 4, 5));
List<Object[]> expected = new ArrayList<Object[]>();
expected.add(new Object[] { 1, 2, 3 });
expected.add(new Object[] { 1, 2, 4 });
expected.add(new Object[] { 1, 2, 5 });
expected.add(new Object[] { 1, 3, 3 });
expected.add(new Object[] { 1, 3, 4 });
expected.add(new Object[] { 1, 3, 5 });
ValuesComparison.compare(values, expected);
}
Aggregations