Fixed test incompatibility with Java5.
This commit is contained in:
parent
7efda3f0a0
commit
e30d37c71b
|
@ -50,7 +50,7 @@ If the output is not quite correct, check for invisible trailing spaces!
|
|||
<title>Commons Math Release Notes</title>
|
||||
</properties>
|
||||
<body>
|
||||
<release version="3.5" date="2015-04-16" description="
|
||||
<release version="3.5" date="2015-04-17" description="
|
||||
This is a minor release: It combines bug fixes and new features.
|
||||
Changes to existing features were made in a backwards-compatible
|
||||
way such as to allow drop-in replacement of the v3.4.1 JAR file.
|
||||
|
|
|
@ -394,9 +394,15 @@ public class PolyhedronsSetTest {
|
|||
|
||||
@Test
|
||||
public void testFacet2Vertices() throws IOException, ParseException {
|
||||
checkError(Arrays.asList(Vector3D.ZERO, Vector3D.PLUS_I, Vector3D.PLUS_J, Vector3D.PLUS_K),
|
||||
Arrays.asList(new int[] { 0, 1, 2 }, new int[] {2, 3}),
|
||||
LocalizedFormats.WRONG_NUMBER_OF_POINTS);
|
||||
List<Vector3D> vertices = new ArrayList<Vector3D>();
|
||||
vertices.add(Vector3D.ZERO);
|
||||
vertices.add(Vector3D.PLUS_I);
|
||||
vertices.add(Vector3D.PLUS_J);
|
||||
vertices.add(Vector3D.PLUS_K);
|
||||
List<int[]> facets = new ArrayList<int[]>();
|
||||
facets.add(new int[] { 0, 1, 2 });
|
||||
facets.add(new int[] {2, 3});
|
||||
checkError(vertices, facets, LocalizedFormats.WRONG_NUMBER_OF_POINTS);
|
||||
}
|
||||
|
||||
private void checkError(final String resourceName, final LocalizedFormats expected) {
|
||||
|
|
Loading…
Reference in New Issue