From 06130d40da7ddc1e33da743b97ba15ea42d1ebc3 Mon Sep 17 00:00:00 2001 From: Steven Lu Date: Tue, 20 Jan 2026 00:55:50 +0700 Subject: [PATCH] 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. --- src/datastruct/split_tree.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/datastruct/split_tree.zig b/src/datastruct/split_tree.zig index 93daa77e9..e3be5b49f 100644 --- a/src/datastruct/split_tree.zig +++ b/src/datastruct/split_tree.zig @@ -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());