author | Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
Thu, 30 Oct 2014 21:30:10 +0100 | |
changeset 409 | 40cabcdcd2be |
parent 390 | a72eecb99952 |
permissions | -rw-r--r-- |
jtulach@378 | 1 |
package test; |
jtulach@8 | 2 |
|
jtulach@390 | 3 |
import static api.Erasure.arePositive; |
jtulach@390 | 4 |
import java.util.Arrays; |
jtulach@390 | 5 |
import java.util.List; |
jtulach@378 | 6 |
|
jtulach@380 | 7 |
public class ErasureTest { |
jtulach@378 | 8 |
public static void main(String[] args) { |
jtulach@391 | 9 |
// BEGIN: variance.erasure.test |
jtulach@390 | 10 |
List<Integer> oneToTen = Arrays.asList(2, 4, 6, 8, 10); |
jtulach@390 | 11 |
boolean positive = arePositive(oneToTen); |
jtulach@380 | 12 |
System.err.println("positive = " + positive); |
jtulach@381 | 13 |
assert positive : "All the numbers are positive: " + oneToTen; |
jtulach@391 | 14 |
// END: variance.erasure.test |
jtulach@8 | 15 |
} |
jtulach@8 | 16 |
} |