apprt/gtk-ng: active surface hookups

This commit is contained in:
Mitchell Hashimoto
2025-08-09 13:49:25 -07:00
parent 8232cf33b4
commit ec293c1fd0
4 changed files with 29 additions and 55 deletions

View File

@@ -1151,3 +1151,21 @@ test "SplitTree: split twice, remove intermediary" {
t.deinit();
}
}
test "SplitTree: clone empty tree" {
const testing = std.testing;
const alloc = testing.allocator;
var t: TestTree = .empty;
defer t.deinit();
var t2 = try t.clone(alloc);
defer t2.deinit();
{
const str = try std.fmt.allocPrint(alloc, "{}", .{t2});
defer alloc.free(str);
try testing.expectEqualStrings(str,
\\empty
);
}
}