INNER CODE UNIT · C#

rows

JetBrains/godot-support · debugger/debugger-worker-tests/src/ChildChunkingTests.cs:121

            var rows = Split(0, 2 * ChunkSize);
            Assert.That(rows.Select(r => AsGroup(r).Label), Is.EqualTo(new[] { "[0..99]", "[100..199]" }));
        }

        [Test]
        public void MaximumFlatGroupCountDoesNotNest()
        {
            // ChunkSize groups of ChunkSize children is the largest run that still fits in one level.
            var rows = Split(0, ChunkSize * ChunkSize);
            Assert.That(rows, Has.Count.EqualTo(ChunkSize));
            Assert.That(AsGroup(rows[0]).Label, Is.EqualTo("[0..99]"));
            Assert.That(AsGroup(rows[ChunkSize - 1]).Label, Is.EqualTo("[9900..9999]"));
            Assert.That(AsGroup(rows[0]).Children, Is.All.InstanceOf<Leaf>(),
                "A group at the only level must hold children directly");
        }

        // ---------------------------------------------------------------------------------------------------
        // Chunks of chunks

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…