/**
 * Copyright (c) 2001-2016 Mathew A. Nelson and Robocode contributors
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://robocode.sourceforge.net/license/epl-v10.html
 */
package robocode.control.testing;


import robocode.util.Utils;


/**
 * Provides some additional Assert methods for use in Robocode.
 *
 * @author Philip Johnson (original)
 * @author Pavel Savara (contributor)
 */
public class RobotTestBedAssert extends org.junit.Assert {

	/**
	 * Asserts that the two values are "sufficiently close".
	 * Define sufficiently close using Utils.NEAR_DELTA.
	 *
	 * @param value1 First value.
	 * @param value2 Second value.
	 */
	public static void assertNear(double value1, double value2) {
		org.junit.Assert.assertEquals(value1, value2, Utils.NEAR_DELTA);
	}
}
