author | Jaroslav Tulach <jtulach@netbeans.org> |
Tue, 18 Oct 2011 06:47:43 +0200 | |
changeset 378 | 68bba7c8a1b3 |
parent 181 | samples/primitiveconstants/src-impl/impl/Impl.java@81d72f69fa42 |
permissions | -rw-r--r-- |
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 |
} |