public void Test_swe_d2l() { using (var target = new SwissEph()) { Assert.Equal(0, target.swe_d2l(0)); Assert.Equal(123, target.swe_d2l(123.45)); Assert.Equal(124, target.swe_d2l(123.987)); Assert.Equal(-123, target.swe_d2l(-123.45)); Assert.Equal(-124, target.swe_d2l(-123.987)); } }
public static double degtocs(double x) { return(SwissEph.swe_d2l((x) * SwissEph.DEG)); }
public void Test_swe_d2l() { using (var target = new SwissEph()) { Assert.AreEqual(0, target.swe_d2l(0)); Assert.AreEqual(123, target.swe_d2l(123.45)); Assert.AreEqual(124, target.swe_d2l(123.987)); Assert.AreEqual(-123, target.swe_d2l(-123.45)); Assert.AreEqual(-124, target.swe_d2l(-123.987)); } }