示例#1
0
 public void Test_swe_csnorm() {
     using (var target = new SwissEph()) {
         Assert.Equal(0, target.swe_csnorm(0 * SwissEph.DEG));
         Assert.Equal(3 * SwissEph.DEG, target.swe_csnorm(3 * SwissEph.DEG));
         Assert.Equal(357 * SwissEph.DEG, target.swe_csnorm(-3 * SwissEph.DEG));
         Assert.Equal(3 * SwissEph.DEG, target.swe_csnorm(363 * SwissEph.DEG));
         Assert.Equal(357 * SwissEph.DEG, target.swe_csnorm(-363 * SwissEph.DEG));
     }
 }
示例#2
0
 public void Test_swe_csnorm()
 {
     using (var target = new SwissEph()) {
         Assert.AreEqual(0, target.swe_csnorm(0 * SwissEph.DEG));
         Assert.AreEqual(3 * SwissEph.DEG, target.swe_csnorm(3 * SwissEph.DEG));
         Assert.AreEqual(357 * SwissEph.DEG, target.swe_csnorm(-3 * SwissEph.DEG));
         Assert.AreEqual(3 * SwissEph.DEG, target.swe_csnorm(363 * SwissEph.DEG));
         Assert.AreEqual(357 * SwissEph.DEG, target.swe_csnorm(-363 * SwissEph.DEG));
     }
 }