split_tree: fix test passing wrong type to split()

The test was passing *TestView instead of *TestTree to the split()
function, which caused a compilation error.
This commit is contained in:
Steven Lu
2026-01-20 00:55:50 +07:00
parent 6db4e437ca
commit 06130d40da

View File

@@ -1356,12 +1356,14 @@ test "SplitTree: isSplit" {
// Split tree should be split
var v2: TestView = .{ .label = "B" };
var tree2: TestTree = try TestTree.init(alloc, &v2);
defer tree2.deinit();
var split = try single.split(
alloc,
.root,
.right,
0.5,
&v2,
&tree2,
);
defer split.deinit();
try testing.expect(split.isSplit());