package stsc.algorithms;

import junit.framework.TestCase;

public class AlgorithmSettingsTest extends TestCase {
	public void testAlgorithmsSettings() {
		final AlgorithmSettings as = new AlgorithmSettings();
		final String d = as.get("a");
		assertNull(d);
		assertNotNull(as.set("a", new Double(14.05)));
		assertNotNull(as.set("b", 14.05));
		assertEquals(as.get("a"), as.get("b"));

		as.set("r", "14.56");
		assertEquals(14.56, Double.valueOf(as.get("r")));

	}
}

@@ -344,45 +344,141 @@
 ;%0A%09%09
-assertEquals(as.get(%22a%22), as.get(%22b%22)
+Double recD = new Double(0.0);%0A%09%09as.get(%22b%22, recD);%0A%09%09double recV = 0.0;%0A%09%09as.get(%22a%22, recV);%0A%09%09assertEquals(recD.doubleValue(), recV
 );%0A%0A

return AlgorithmSettings tests