// Path: java_sentence_completion/src/utils/MathTools.java
// public class MathTools {
// 
// 	/**
// 	 * Ramp function
// 	 * 
// 	 * <a href="https://en.wikipedia.org/wiki/Ramp_function">wikipedia<a>
// 	 * 
// 	 * @param x
// 	 * @return x if x > 0; 0 otherwise
// 	 */
// 	public static int ramp_fun(int x) {
// 		return x > 0 ? x : 0;
// 	}
// 
// 	/**
// 	 * Ramp function
// 	 * 
// 	 * <a href="https://en.wikipedia.org/wiki/Ramp_function">wikipedia<a>
// 	 * 
// 	 * @param x
// 	 * @return x if x > 0; 0 otherwise
// 	 */
// 	public static float ramp_fun(float x) {
// 		return x > 0 ? x : 0;
// 	}
// 
// 	/**
// 	 * sum over the arguments
// 	 * 
// 	 * @param ints
// 	 *            non-null
// 	 * @return the sum of each element of ints
// 	 */
// 	public static int sum(int... ints) {
// 		int sum = 0;
// 		for (int i : ints) {
// 			sum += i;
// 		}
// 		return sum;
// 	}
// 	
// 	/**
// 	 * minimum
// 	 * @param is non-null, length > 0
// 	 * @return the minimal element
// 	 */
// 	public static int min(int... is) {
// 		int min = is[0];
// 		for (int i : is) {
// 			if (i < min){
// 				min = i;
// 			}
// 		}
// 		return min ;
// 	}
// 	
// 	/**
// 	 * maximum
// 	 * @param is non-null, length > 0
// 	 * @return the maximal element
// 	 */
// 	public static int max(int... is) {
// 		int max = is[0];
// 		for (int i : is) {
// 			if (i > max){
// 				max = i;
// 			}
// 		}
// 		return max ;
// 	}
// }


import static org.junit.Assert.*;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import utils.MathTools;
/**
 * Copyright 2011-2012 Bernard Paulus and Cédric Snauwaert
 * 
 * Confabulation_Symbolic is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Confabulation_Symbolic is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Confabulation_Symbolic.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
 * 
 */
package utils.test;




/**
 * @author bernard and cedric
 * 
 */
public class MathToolsTest {

	/**
	 * @throws java.lang.Exception
	 */
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@Before
	public void setUp() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@After
	public void tearDown() throws Exception {
	}

	/**
	 * Test method for {@link utils.MathTools#ramp_fun(int)}.
	 */
	@Test
	public void ramp() {
// Path: java_sentence_completion/src/utils/MathTools.java
// public class MathTools {
// 
// 	/**
// 	 * Ramp function
// 	 * 
// 	 * <a href="https://en.wikipedia.org/wiki/Ramp_function">wikipedia<a>
// 	 * 
// 	 * @param x
// 	 * @return x if x > 0; 0 otherwise
// 	 */
// 	public static int ramp_fun(int x) {
// 		return x > 0 ? x : 0;
// 	}
// 
// 	/**
// 	 * Ramp function
// 	 * 
// 	 * <a href="https://en.wikipedia.org/wiki/Ramp_function">wikipedia<a>
// 	 * 
// 	 * @param x
// 	 * @return x if x > 0; 0 otherwise
// 	 */
// 	public static float ramp_fun(float x) {
// 		return x > 0 ? x : 0;
// 	}
// 
// 	/**
// 	 * sum over the arguments
// 	 * 
// 	 * @param ints
// 	 *            non-null
// 	 * @return the sum of each element of ints
// 	 */
// 	public static int sum(int... ints) {
// 		int sum = 0;
// 		for (int i : ints) {
// 			sum += i;
// 		}
// 		return sum;
// 	}
// 	
// 	/**
// 	 * minimum
// 	 * @param is non-null, length > 0
// 	 * @return the minimal element
// 	 */
// 	public static int min(int... is) {
// 		int min = is[0];
// 		for (int i : is) {
// 			if (i < min){
// 				min = i;
// 			}
// 		}
// 		return min ;
// 	}
// 	
// 	/**
// 	 * maximum
// 	 * @param is non-null, length > 0
// 	 * @return the maximal element
// 	 */
// 	public static int max(int... is) {
// 		int max = is[0];
// 		for (int i : is) {
// 			if (i > max){
// 				max = i;
// 			}
// 		}
// 		return max ;
// 	}
// }


// Path: java_sentence_completion/src/utils/test/MathToolsTest.java
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import utils.MathTools;

/**
 * Copyright 2011-2012 Bernard Paulus and Cédric Snauwaert
 * 
 * Confabulation_Symbolic is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Confabulation_Symbolic is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Confabulation_Symbolic.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
 * 
 */
package utils.test;




/**
 * @author bernard and cedric
 * 
 */
public class MathToolsTest {

	/**
	 * @throws java.lang.Exception
	 */
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@Before
	public void setUp() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@After
	public void tearDown() throws Exception {
	}

	/**
	 * Test method for {@link utils.MathTools#ramp_fun(int)}.
	 */
	@Test
	public void ramp() {
		assertEquals(0, MathTools.ramp_fun(0));