Example #1
0
        public void Zag_Decodes64BitZiggedValues(ulong encodedNumber, long expectedNumber)
        {
            var number = PbfBlock.Zag(encodedNumber);

            Assert.Equal(expectedNumber, number);
        }
Example #2
0
        public void Zag_Decodes32BitZiggedValues(uint encodedNumber, int expectedNumber)
        {
            var number = PbfBlock.Zag(encodedNumber);

            Assert.Equal(expectedNumber, number);
        }