use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.
the class Multiply method testCombine_1_4.
@Test
public void testCombine_1_4() {
Values values = createColumn(1, 2, 3);
values = values.multiply(createColumn(5, 6, 7));
List<Object[]> expected = new ArrayList<Object[]>();
expected.add(new Object[] { 1, 5 });
expected.add(new Object[] { 1, 6 });
expected.add(new Object[] { 1, 7 });
expected.add(new Object[] { 2, 5 });
expected.add(new Object[] { 2, 6 });
expected.add(new Object[] { 2, 7 });
expected.add(new Object[] { 3, 5 });
expected.add(new Object[] { 3, 6 });
expected.add(new Object[] { 3, 7 });
ValuesComparison.compare(values, expected);
}
use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.
the class Multiply method testCombine_0_1_1.
@Test
public void testCombine_0_1_1() {
Values values = createColumn("a");
values = values.multiply(createColumn("b", "x"));
values = values.multiply(createColumn("c"));
List<Object[]> expected = new ArrayList<Object[]>();
expected.add(new Object[] { "a", "b", "c" });
expected.add(new Object[] { "a", "x", "c" });
ValuesComparison.compare(values, expected);
}
use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.
the class Multiply method testCombineCombine_3_cacheIsExpected.
@Test
public void testCombineCombine_3_cacheIsExpected() {
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);
checkCombineCombine_3(values_1.createCache());
}
use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.
the class Multiply method testCombine_1_9.
@Test
public void testCombine_1_9() {
Values values = createColumn("a", "a", "a", "a", "a", "a");
values = values.multiply(createColumn(Math.PI));
List<Object[]> expected = new ArrayList<Object[]>();
expected.add(new Object[] { "a", Math.PI });
expected.add(new Object[] { "a", Math.PI });
expected.add(new Object[] { "a", Math.PI });
expected.add(new Object[] { "a", Math.PI });
expected.add(new Object[] { "a", Math.PI });
expected.add(new Object[] { "a", Math.PI });
ValuesComparison.compare(values, expected);
}
use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.
the class Multiply method testCombine_1_8.
@Test
public void testCombine_1_8() {
Values values = createColumn(1, 1);
values = values.multiply(createColumn(2, 2));
List<Object[]> expected = new ArrayList<Object[]>();
expected.add(new Object[] { 1, 2 });
expected.add(new Object[] { 1, 2 });
expected.add(new Object[] { 1, 2 });
expected.add(new Object[] { 1, 2 });
ValuesComparison.compare(values, expected);
}
Aggregations