mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-14 19:45:49 +00:00
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user