Replaced DOS line terminators.
Project: http://git-wip-us.apache.org/repos/asf/commons-rng/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-rng/commit/58f49e3c Tree: http://git-wip-us.apache.org/repos/asf/commons-rng/tree/58f49e3c Diff: http://git-wip-us.apache.org/repos/asf/commons-rng/diff/58f49e3c Branch: refs/heads/master Commit: 58f49e3cf50a5155a536f36f9228f84ba73cf1ac Parents: 067a570 Author: Gilles <er...@apache.org> Authored: Tue Oct 18 17:00:27 2016 +0200 Committer: Gilles <er...@apache.org> Committed: Tue Oct 18 17:00:27 2016 +0200 ---------------------------------------------------------------------- .../org/apache/commons/rng/RandomAssert.java | 70 ++++++++++---------- 1 file changed, 35 insertions(+), 35 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-rng/blob/58f49e3c/src/test/java/org/apache/commons/rng/RandomAssert.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/rng/RandomAssert.java b/src/test/java/org/apache/commons/rng/RandomAssert.java index caf5502..5b08ef4 100644 --- a/src/test/java/org/apache/commons/rng/RandomAssert.java +++ b/src/test/java/org/apache/commons/rng/RandomAssert.java @@ -1,35 +1,35 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.commons.rng; - -import org.junit.Assert; - -public class RandomAssert { - - public static void assertEquals(int[] expected, UniformRandomProvider rng) { - for (int i = 0; i < expected.length; i++) { - Assert.assertEquals("Value at position " + i, expected[i], rng.nextInt()); - } - } - - public static void assertEquals(long[] expected, UniformRandomProvider rng) { - for (int i = 0; i < expected.length; i++) { - Assert.assertEquals("Value at position " + i, expected[i], rng.nextLong()); - } - } -} +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.commons.rng; + +import org.junit.Assert; + +public class RandomAssert { + + public static void assertEquals(int[] expected, UniformRandomProvider rng) { + for (int i = 0; i < expected.length; i++) { + Assert.assertEquals("Value at position " + i, expected[i], rng.nextInt()); + } + } + + public static void assertEquals(long[] expected, UniformRandomProvider rng) { + for (int i = 0; i < expected.length; i++) { + Assert.assertEquals("Value at position " + i, expected[i], rng.nextLong()); + } + } +}