Search in sources :

Example 71 with Values

use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.

the class PseudoMultiply method test_empty_7.

@Test
public void test_empty_7() {
    Values values = createColumn(5, 6, 7).pseudoMultiply(createColumn()).pseudoMultiply(createColumn());
    List<Object[]> expected = new ArrayList<Object[]>();
    ValuesComparison.compare(values, expected);
}
Also used : Values(com.sun.tck.lib.tgf.Values) ArrayList(java.util.ArrayList) Test(org.junit.Test)

Example 72 with Values

use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.

the class PseudoMultiply method testDiag_enlarge_2_10_1.

@Test
public void testDiag_enlarge_2_10_1() {
    Values values = createColumn(1, 0).pseudoMultiply(2, 3, 4, 5, 6).pseudoMultiply(7, 8, 9, 10, 11, 12, 13);
    List<Object[]> expected = new ArrayList<Object[]>();
    expected.add(new Object[] { 1, 2, 7 });
    expected.add(new Object[] { 0, 3, 8 });
    expected.add(new Object[] { 1, 4, 9 });
    expected.add(new Object[] { 0, 5, 10 });
    expected.add(new Object[] { 1, 6, 11 });
    expected.add(new Object[] { 1, 2, 12 });
    expected.add(new Object[] { 0, 3, 13 });
    ValuesComparison.compare(values, expected);
}
Also used : Values(com.sun.tck.lib.tgf.Values) ArrayList(java.util.ArrayList) Test(org.junit.Test)

Example 73 with Values

use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.

the class PseudoMultiply method testDiag_1_twice.

@Test
public void testDiag_1_twice() {
    Values values = createColumn(1, 2);
    values = values.pseudoMultiply(createColumn(3, 4));
    values = values.pseudoMultiply(createColumn(5, 6));
    List<Object[]> expected = new ArrayList<Object[]>();
    expected.add(new Object[] { 1, 3, 5 });
    expected.add(new Object[] { 2, 4, 6 });
    ValuesComparison.compare(values, expected);
}
Also used : Values(com.sun.tck.lib.tgf.Values) ArrayList(java.util.ArrayList) Test(org.junit.Test)

Example 74 with Values

use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.

the class PseudoMultiply method testDiag_1_1_1.

@Test
public void testDiag_1_1_1() {
    Values values = createColumn(1, 2);
    values = values.pseudoMultiply(new Object[][] { { 8, 9 }, { 10, 30 } });
    List<Object[]> expected = new ArrayList<Object[]>();
    expected.add(new Object[] { 1, 8, 9 });
    expected.add(new Object[] { 2, 10, 30 });
    ValuesComparison.compare(values, expected);
}
Also used : Values(com.sun.tck.lib.tgf.Values) ArrayList(java.util.ArrayList) Test(org.junit.Test)

Example 75 with Values

use of com.sun.tck.lib.tgf.Values in project jtharness by openjdk.

the class PseudoMultiply method testDiag_enlarge_1_compareCached.

@Test
public void testDiag_enlarge_1_compareCached() {
    Values values = createColumn(1, 2);
    values = values.pseudoMultiply(createColumn(3, 4, 5, 6));
    values = values.pseudoMultiply(createColumn(90, 100, 110, 500, 600, 700));
    ValuesComparison.checkCachedReturnsTheSame(values);
}
Also used : Values(com.sun.tck.lib.tgf.Values) Test(org.junit.Test)

Aggregations

Values (com.sun.tck.lib.tgf.Values)528 Test (org.junit.Test)512 ArrayList (java.util.ArrayList)459 TestObject (com.oracle.tck.lib.autd2.unittests.TestObject)80 DataFactory.createValues (com.sun.tck.lib.tgf.DataFactory.createValues)50 Transform (com.sun.tck.lib.tgf.Transform)32 TestResult (com.oracle.tck.lib.autd2.TestResult)31 TestCase (com.sun.tck.test.TestCase)28 TestGroup (com.sun.tck.test.TestGroup)27 TestData (com.sun.tck.lib.tgf.TestData)22 BaseTestGroup (com.oracle.tck.lib.autd2.unittests.BaseTestGroup)21 ValuesImplSlow (com.oracle.tck.lib.autd2.unittests.tgfported.ValuesImplSlow)12 IntPair (com.oracle.tck.lib.autd2.unittests.IntPair)7 Operation (com.sun.tck.lib.tgf.data.Operation)6 DataFactory (com.sun.tck.lib.tgf.DataFactory)5 Color (java.awt.Color)5 ColorSpace (java.awt.color.ColorSpace)3 RandomAccess (java.util.RandomAccess)3 Assert.assertEquals (com.sun.tck.lib.Assert.assertEquals)2 Assert.assertTrue (com.sun.tck.lib.Assert.assertTrue)2