Example #1
0
        public void TestNegativeIds()
        {
            var index = new NodeIndex();

            index.AddId(-128510752);
            index.SortAndConvertIndex();
            index.Set(-128510752, 11);

            index.TryGetValue(-128510752, out var latitude, out var longitude, out var isCore, out var vertex);
            Assert.AreEqual(float.MaxValue, latitude);
            Assert.AreEqual(float.MaxValue, longitude);
            Assert.AreEqual(false, isCore);
            Assert.AreEqual(11, vertex);
        }
Example #2
0
        public void TestNegativeIds()
        {
            var index = new NodeIndex();

            index.AddId(-128510752);
            index.Set(-128510752, 11);

            float latitude, longitude;
            bool  isCore;
            uint  vertex;

            index.TryGetValue(-128510752, out latitude, out longitude, out isCore, out vertex);
            Assert.AreEqual(float.MaxValue, latitude);
            Assert.AreEqual(float.MaxValue, longitude);
            Assert.AreEqual(false, isCore);
            Assert.AreEqual(11, vertex);
        }