예제 #1
0
        public void dimTest()
        {
            var d = new Dim();

            Assert.AreEqual(1, d.dim(1));
            Assert.AreEqual(7, d.dim(100));
            Assert.AreEqual(16, d.dim(65535));
            Assert.AreEqual(32, d.dim(4294967295));
            Assert.AreEqual(48, d.dim(281474976710655));
            Assert.AreEqual(1, d.dim(0));
            Assert.AreEqual(50, d.dim(1000000000000000));
            Assert.AreEqual(33, d.dim(6774366024));
        }