use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.
the class PseudoMultiply method test_empty_1_15.
@Test
public void test_empty_1_15() {
Values values = createColumn(123).pseudoMultiply(234).pseudoMultiply(1).pseudoMultiply(new String[0][0]).pseudoMultiply(1);
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_twice_shortcut_2.
@Test
public void testDiag_enlarge_2_twice_shortcut_2() {
Values values = pseudoMultiply(createColumn(1, 2, 3, 4, 5), createColumn(6, 7, 8, 9), createColumn(3, 4, 5), createColumn(2, 3), createColumn(1));
List<Object[]> expected = new ArrayList<Object[]>();
expected.add(new Object[] { 1, 6, 3, 2, 1 });
expected.add(new Object[] { 2, 7, 4, 3, 1 });
expected.add(new Object[] { 3, 8, 5, 2, 1 });
expected.add(new Object[] { 4, 9, 3, 3, 1 });
expected.add(new Object[] { 5, 6, 4, 2, 1 });
ValuesComparison.compare(values, expected);
}
use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.
the class PseudoMultiply method testDiag_enlarge_2_2.
@Test
public void testDiag_enlarge_2_2() {
Values values = createColumn(3, 4);
values = values.pseudoMultiply(createColumn(1, 2, 7, 8, 9));
List<Object[]> expected = new ArrayList<Object[]>();
expected.add(new Object[] { 3, 1 });
expected.add(new Object[] { 4, 2 });
expected.add(new Object[] { 3, 7 });
expected.add(new Object[] { 4, 8 });
expected.add(new Object[] { 3, 9 });
ValuesComparison.compare(values, expected);
}
use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.
the class PseudoMultiply method testDiag_6.
@Test
public void testDiag_6() {
Values values = createColumn("a", "b", "c");
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 });
ValuesComparison.compare(values, expected);
}
use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.
the class PseudoMultiply method testDiag_enlarge_2_twice_shortcut_3.
@Test
public void testDiag_enlarge_2_twice_shortcut_3() {
Values values = pseudoMultiply(createColumn(1), createColumn(2, 3), createColumn(3, 4, 5), createColumn(6, 7, 8, 9), createColumn(1, 2, 3, 4, 5), createColumn("a", "b", "c", "d"), createColumn("x", "y", "z"), createColumn(0, 1), createColumn(115));
List<Object[]> expected = new ArrayList<Object[]>();
expected.add(new Object[] { 1, 2, 3, 6, 1, "a", "x", 0, 115 });
expected.add(new Object[] { 1, 3, 4, 7, 2, "b", "y", 1, 115 });
expected.add(new Object[] { 1, 2, 5, 8, 3, "c", "z", 0, 115 });
expected.add(new Object[] { 1, 2, 3, 9, 4, "d", "x", 1, 115 });
expected.add(new Object[] { 1, 2, 3, 6, 5, "a", "y", 0, 115 });
ValuesComparison.compare(values, expected);
}
Aggregations