// Path: public-java/iamcontent-core/src/test/java/com/iamcontent/core/math/MathUtilsTest.java
// public static void assertCloseEnough(double expected, double actual) {
// 	assertEquals(expected, actual, TOLERANCE);
// }


import static com.iamcontent.core.math.InterRangeDoubleConverter.ClampingMode.CLAMPED;
import static com.iamcontent.core.math.InterRangeDoubleConverter.ClampingMode.UNCLAMPED;
import static com.iamcontent.core.math.MathUtilsTest.assertCloseEnough;
import org.junit.Test;

/**
  IAmContent Public Libraries.
  Copyright (C) 2015-2021 Greg Elderfield
  @author Greg Elderfield, support@jarchitect.co.uk
 
  This program 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 2 of 
  the License, or (at your option) any later version.

  This program 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 this program;
  if not, write to the Free Software Foundation, Inc., 
  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
package com.iamcontent.core.math;



public class InterRangeDoubleConverterTest {

	private static final DoubleRange RANGE_1 = new DoubleRange(2, 3);
	private static final DoubleRange RANGE_2 = new DoubleRange(-20, -30);
	
	@Test
	public void testApplyForward_clamped() {

// Path: public-java/iamcontent-core/src/test/java/com/iamcontent/core/math/MathUtilsTest.java
// public static void assertCloseEnough(double expected, double actual) {
// 	assertEquals(expected, actual, TOLERANCE);
// }


// Path: public-java/iamcontent-core/src/test/java/com/iamcontent/core/math/InterRangeDoubleConverterTest.java
import static com.iamcontent.core.math.InterRangeDoubleConverter.ClampingMode.CLAMPED;
import static com.iamcontent.core.math.InterRangeDoubleConverter.ClampingMode.UNCLAMPED;
import static com.iamcontent.core.math.MathUtilsTest.assertCloseEnough;
import org.junit.Test;

/**
  IAmContent Public Libraries.
  Copyright (C) 2015-2021 Greg Elderfield
  @author Greg Elderfield, support@jarchitect.co.uk
 
  This program 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 2 of 
  the License, or (at your option) any later version.

  This program 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 this program;
  if not, write to the Free Software Foundation, Inc., 
  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
package com.iamcontent.core.math;



public class InterRangeDoubleConverterTest {

	private static final DoubleRange RANGE_1 = new DoubleRange(2, 3);
	private static final DoubleRange RANGE_2 = new DoubleRange(-20, -30);
	
	@Test
	public void testApplyForward_clamped() {

		final InterRangeDoubleConverter c = new InterRangeDoubleConverter(RANGE_1, RANGE_2, CLAMPED);
