1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/samples/covariance/src-impl/test/CovarianceTest.java Tue Oct 18 06:47:43 2011 +0200
1.3 @@ -0,0 +1,13 @@
1.4 +package test;
1.5 +
1.6 +import api.Covariance;
1.7 +
1.8 +public class CovarianceTest {
1.9 + // BEGIN: variance.covariance.test
1.10 + public static void main(String[] args) {
1.11 + Number n = Covariance.max(10, 20);
1.12 + System.err.println("value: " + n + " type: " + n.getClass());
1.13 + assert n.intValue() == 20 : "The max should be 20, but was: " + n;
1.14 + }
1.15 + // END: variance.covariance.test
1.16 +}