use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.
the class Mixed method testCombine_Diag_1.
@Test
public void testCombine_Diag_1() {
Values values = createColumn(1, 2);
values = values.multiply(createColumn(3, 4));
values = values.pseudoMultiply(createColumn(3));
List<Object[]> expected = new ArrayList<Object[]>();
expected.add(new Object[] { 1, 3, 3 });
expected.add(new Object[] { 1, 4, 3 });
expected.add(new Object[] { 2, 3, 3 });
expected.add(new Object[] { 2, 4, 3 });
ValuesComparison.compare(values, expected);
}
use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.
the class Mixed method test_01.
@Test
public void test_01() {
Values v_1 = createColumn("c");
Values v_2 = createColumn("a");
Values v_3 = createColumn("a", "b");
// o1.with( o2.with(v1, v2), v3 )
Values vfinal = v_1.unite(v_2).pseudoMultiply(v_3);
List<Object[]> expected = new ArrayList<>();
expected.add(new Object[] { "c", "a" });
expected.add(new Object[] { "a", "b" });
ValuesComparison.compare(vfinal, expected);
}
use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.
the class Mixed method test_0_04.
@Test
public void test_0_04() {
Values v_1 = createColumn();
Values v_2 = createColumn("a");
Values v_3 = createColumn("a", "b", "c");
Values vfinal = v_3.pseudoMultiply(v_1.unite(v_2));
List<Object[]> expected = new ArrayList<>();
expected.add(new Object[] { "a", "a" });
expected.add(new Object[] { "b", "a" });
expected.add(new Object[] { "c", "a" });
ValuesComparison.compare(vfinal, expected);
}
use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.
the class Mixed method test_withEmpty_1.
@Test
public void test_withEmpty_1() {
Values values = createColumn("a").intersect().multiply("a");
List<Object[]> expected = new ArrayList<Object[]>();
ValuesComparison.compare(values, expected);
}
use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.
the class Mixed method testDiag_pseudoMult_intersect_18.
@Test
public void testDiag_pseudoMult_intersect_18() {
Values values = createColumn("a", "b").pseudoMultiply(1, 2, 3).pseudoMultiply(4, 5, 6, 7, 8, 9).intersect(createRow("a", 3, 6).unite(createRow("b", 2, 5)).unite(createRow("b", 89, 56)));
values = pseudoMultiply(values);
List<Object[]> expected = new ArrayList<Object[]>();
expected.add(new Object[] { "b", 2, 5 });
expected.add(new Object[] { "a", 3, 6 });
ValuesComparison.compare(values, expected);
}
Aggregations