samples/covariance/src-impl/test/CovarianceTest.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Fri, 03 Apr 2020 16:32:36 +0200
changeset 416 9ed8788a1a4e
parent 181 81d72f69fa42
permissions -rw-r--r--
Using HTTPS to download the libraries
jtulach@378
     1
package test;
jtulach@8
     2
jtulach@378
     3
import api.Covariance;
jtulach@378
     4
jtulach@378
     5
public class CovarianceTest {
jtulach@378
     6
    // BEGIN: variance.covariance.test
jtulach@378
     7
    public static void main(String[] args) {
jtulach@378
     8
        Number n = Covariance.max(10, 20);
jtulach@378
     9
        System.err.println("value: " + n + " type: " + n.getClass());
jtulach@378
    10
        assert n.intValue() == 20 : "The max should be 20, but was: " + n;
jtulach@8
    11
    }
jtulach@378
    12
    // END: variance.covariance.test
jtulach@8
    13
}