public SearchState.NextStateIterator getNextStates() { return new NextStates(); } public String toString() { return "node " + id; }
public static void testCount () { assertEquals (5, Strings.count ("abracadabra", 'a')); assertEquals (0, Strings.count ("hocus pocus", 'z')); }
public static void main (String[] args) { junit.textui.TestRunner.run (suite()); }
public static void main (String[] args) throws Throwable { TestSuite theSuite; if (args.length > 0) { theSuite = new TestSuite (); for (int i = 0; i < args.length; i++) { theSuite.addTest (new TestRandom (args[i])); } } else { theSuite = (TestSuite) TestRandom.suite (); } junit.textui.TestRunner.run (theSuite); }
public static void main (String[] args) throws Throwable { TestSuite theSuite; if (args.length > 0) { theSuite = new TestSuite (); for (int i = 0; i < args.length; i++) { theSuite.addTest (new TestStrings (args[i])); } } else { theSuite = (TestSuite) suite (); } junit.textui.TestRunner.run (theSuite); }
public static void main (String[] args) throws Throwable { TestSuite theSuite; if (args.length > 0) { theSuite = new TestSuite (); for (int i = 0; i < args.length; i++) { theSuite.addTest (new TestMaths (args[i])); } } else { theSuite = (TestSuite) suite (); } junit.textui.TestRunner.run (theSuite); }
public void testPbinom () { assertEquals (0.9426562, Maths.pbinom (25, 50, 0.4), 1e-5); assertEquals (0.001978561, Maths.pbinom (80, 100, 0.9), 1e-5); }
public static void main(String[] args) { junit.textui.TestRunner.run(suite()); } }
public static void main(String[] args) { junit.textui.TestRunner.run(suite()); } }
public void testOne () { PropertyList pl = null; pl = PropertyList.add ("one", 1.0, pl); pl = PropertyList.add ("two", 2.0, pl); pl = PropertyList.add ("three", 3, pl); assertTrue (pl.lookupNumber("one") == 1.0); pl = PropertyList.remove ("three", pl); assertTrue (pl.lookupNumber("three") == 0.0); pl = PropertyList.add ("color", "red", pl); assertTrue (pl.lookupObject("color").equals("red")); }
public static void main (String[] args) throws Throwable { TestSuite theSuite; if (args.length > 0) { theSuite = new TestSuite (); for (int i = 0; i < args.length; i++) { theSuite.addTest (new TestStrings (args[i])); } } else { theSuite = (TestSuite) suite (); } junit.textui.TestRunner.run (theSuite); }
public void testLogBinom () { assertEquals (-3.207352, Maths.logBinom (25, 50, 0.4), 1e-5); assertEquals (-230.2585, Maths.logBinom (0, 100, 0.9), 1e-5); }
public SearchState.NextStateIterator getNextStates() { return new NextStates(); } public String toString() { return "node " + id; }
public static void testCount () { assertEquals (5, Strings.count ("abracadabra", 'a')); assertEquals (0, Strings.count ("hocus pocus", 'z')); }
public static void main (String[] args) { junit.textui.TestRunner.run (suite()); }
public static void main(String[] args) { junit.textui.TestRunner.run(suite()); } }
public static void main(String[] args) { junit.textui.TestRunner.run(suite()); } }
public void testOne () { PropertyList pl = null; pl = PropertyList.add ("one", 1.0, pl); pl = PropertyList.add ("two", 2.0, pl); pl = PropertyList.add ("three", 3, pl); assertTrue (pl.lookupNumber("one") == 1.0); pl = PropertyList.remove ("three", pl); assertTrue (pl.lookupNumber("three") == 0.0); pl = PropertyList.add ("color", "red", pl); assertTrue (pl.lookupObject("color").equals("red")); }
public void testLogBinom () { assertEquals (-3.207352, Maths.logBinom (25, 50, 0.4), 1e-5); assertEquals (-230.2585, Maths.logBinom (0, 100, 0.9), 1e-5); }
public void testPbinom () { assertEquals (0.9426562, Maths.pbinom (25, 50, 0.4), 1e-5); assertEquals (0.001978561, Maths.pbinom (80, 100, 0.9), 1e-5); }