mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
fix test
This commit is contained in:
@@ -120,7 +120,7 @@ test "Url resolve size" {
|
|||||||
var url_string: [511]u8 = undefined; // Currently this is the largest url we support, it is however recommmended to at least support 2000 characters
|
var url_string: [511]u8 = undefined; // Currently this is the largest url we support, it is however recommmended to at least support 2000 characters
|
||||||
@memset(&url_string, 'a');
|
@memset(&url_string, 'a');
|
||||||
|
|
||||||
var buf: [2048]u8 = undefined; // This is approximately the required size to support the current largest supported URL
|
var buf: [8192]u8 = undefined; // This is approximately the required size to support the current largest supported URL
|
||||||
var fba = std.heap.FixedBufferAllocator.init(&buf);
|
var fba = std.heap.FixedBufferAllocator.init(&buf);
|
||||||
const out_url = try url.resolve(fba.allocator(), &url_string);
|
const out_url = try url.resolve(fba.allocator(), &url_string);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user