samples/covariance/src-impl/test/CovarianceTest.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 30 Oct 2014 21:30:10 +0100
changeset 409 40cabcdcd2be
parent 181 81d72f69fa42
permissions -rw-r--r--
Updating to NBMs from NetBeans 8.0.1 as some of them are required to run on JDK8
     1 package test;
     2 
     3 import api.Covariance;
     4 
     5 public class CovarianceTest {
     6     // BEGIN: variance.covariance.test
     7     public static void main(String[] args) {
     8         Number n = Covariance.max(10, 20);
     9         System.err.println("value: " + n + " type: " + n.getClass());
    10         assert n.intValue() == 20 : "The max should be 20, but was: " + n;
    11     }
    12     // END: variance.covariance.test
    13 }