コード例 #1
0
        public void CeilTest()
        {
            //check Ceil(double a)
            Assert.AreEqual(6, OwnMath.ceil(5.3));
            Assert.AreEqual(-4, OwnMath.ceil(-4.4));
            Assert.AreEqual(1, OwnMath.ceil(0.25));

            //check CeilInt(double a)
            Assert.AreEqual(6, OwnMath.ceilInt(5.3));
            Assert.AreEqual(-4, OwnMath.ceilInt(-4.4));
            Assert.AreEqual(1, OwnMath.ceilInt(0.25));
        }