samples/erasure/src-impl/test/ErasureTest.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Fri, 03 Apr 2020 16:32:36 +0200
changeset 416 9ed8788a1a4e
parent 390 a72eecb99952
permissions -rw-r--r--
Using HTTPS to download the libraries
     1 package test;
     2 
     3 import static api.Erasure.arePositive;
     4 import java.util.Arrays;
     5 import java.util.List;
     6 
     7 public class ErasureTest {
     8     public static void main(String[] args) {
     9         // BEGIN: variance.erasure.test
    10         List<Integer> oneToTen = Arrays.asList(2, 4, 6, 8, 10);
    11         boolean positive = arePositive(oneToTen);
    12         System.err.println("positive = " + positive);
    13         assert positive : "All the numbers are positive: " + oneToTen;
    14         // END: variance.erasure.test
    15     }
    16 }