use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.
the class PseudoMultiply method testDiag_enlarge_4.
@Test
public void testDiag_enlarge_4() {
Values values = createColumn("a", "b", "c", "d", "e", "f");
values = values.pseudoMultiply(createColumn(1, 2, 3));
List<Object[]> expected = new ArrayList<Object[]>();
expected.add(new Object[] { "a", 1 });
expected.add(new Object[] { "b", 2 });
expected.add(new Object[] { "c", 3 });
expected.add(new Object[] { "d", 1 });
expected.add(new Object[] { "e", 2 });
expected.add(new Object[] { "f", 3 });
ValuesComparison.compare(values, expected);
}
use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.
the class PseudoMultiply method test_empty_1_6.
@Test
public void test_empty_1_6() {
Values values = createRow((Object[]) new Object[0][0]).pseudoMultiply().multiply(1, 2);
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 PseudoMultiply method testDiag_enlarge_2_12.
@Test
public void testDiag_enlarge_2_12() {
Values values = createColumn(1).pseudoMultiply(2, 3).pseudoMultiply(4, 5, 6);
List<Object[]> expected = new ArrayList<Object[]>();
expected.add(new Object[] { 1, 2, 4 });
expected.add(new Object[] { 1, 3, 5 });
expected.add(new Object[] { 1, 2, 6 });
ValuesComparison.compare(values, expected);
}
use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.
the class PseudoMultiply method test_empty_6.
@Test
public void test_empty_6() {
Values values = createColumn(1, 3, 4).pseudoMultiply(createRow()).pseudoMultiply(createRow());
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 PseudoMultiply method testDiag_enlarge_6.
@Test
public void testDiag_enlarge_6() {
final Values c1 = createColumn(1, 2, 3);
final Values c2 = createColumn("a", "b", "c", "d", "e", "f", "g");
final Values c3 = createColumn(true, false);
Values values = c1.pseudoMultiply(c2).pseudoMultiply(c3);
List<Object[]> expected = new ArrayList<Object[]>();
expected.add(new Object[] { 1, "a", true });
expected.add(new Object[] { 2, "b", false });
expected.add(new Object[] { 3, "c", true });
expected.add(new Object[] { 1, "d", false });
expected.add(new Object[] { 2, "e", true });
expected.add(new Object[] { 3, "f", false });
expected.add(new Object[] { 1, "g", true });
ValuesComparison.compare(values, expected);
}
Aggregations