15ter testcase

This commit is contained in:
Florian Steurer 2016-03-28 01:26:53 +02:00
parent de607cfd53
commit 67e1c5c736

View File

@ -377,11 +377,20 @@ public class FiniteClosureTest {
* *
* MyMap<K> <* HashMap<K, List<K>> * MyMap<K> <* HashMap<K, List<K>>
* *
* smaller(SortedSet<? extends Number, ? extends List<? extends Integer>) = * smaller(NavigableSet<? extends Integer, ? extends ArrayList<? extends Integer>>) =
* { HashMap<? extends Integer>, List<Integer>>, * { NavigableSet<? extends Integer, ? extends ArrayList<? extends Integer>>,
* HashMap<? extends Number, List<Integer>>, * NavigableSet<? extends Integer, ? extends ArrayList<Integer>>
* MyMap<Integer, List<Integer>> } * NavigableSet<? extends Integer, ArrayList<? extends Integer>>
* NavigableSet<? extends Integer, ArrayList<Integer>>
* TreeSet<? extends Integer, ? extends ArrayList<? extends Integer>>,
* TreeSet<? extends Integer, ? extends ArrayList<Integer>>
* TreeSet<? extends Integer, ArrayList<? extends Integer>>
* TreeSet<? extends Integer, ArrayList<Integer>> }
*/ */
Type navSet = tf.getSimpleType("NavigableSet", extInt, tf.getExtendsType(tf.getSimpleType("ArrayList", extInt)));
Assert.assertEquals(8, fc.smaller(navSet).size());
} }
@Test @Test