Example #1
0
        public void TestRankingLongMinPlusOne()
        {
            long initial       = long.MinValue + 1;
            var  rankedValue   = FPEWrapper.RankLong(initial);
            var  unrankedValue = FPEWrapper.UnrankLong(rankedValue);

            Assert.AreEqual(initial, unrankedValue);
        }
Example #2
0
        public void TestRankingLongZero()
        {
            long initial       = 0;
            var  rankedValue   = FPEWrapper.RankLong(initial);
            var  unrankedValue = FPEWrapper.UnrankLong(rankedValue);

            Assert.AreEqual(initial, unrankedValue);
        }