Use non-comptime ints in tests
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
4ec3a61bb6
commit
1d65984323
1 changed files with 1 additions and 1 deletions
|
@ -1349,7 +1349,7 @@ test "template" {
|
||||||
|
|
||||||
try testCase("", .{}, "");
|
try testCase("", .{}, "");
|
||||||
try testCase("abcd", .{}, "abcd");
|
try testCase("abcd", .{}, "abcd");
|
||||||
try testCase("{.val}", .{ .val = 3 }, "3");
|
try testCase("{.val}", .{ .val = @as(usize, 3) }, "3");
|
||||||
try testCase("{#if .val}1{/if}", .{ .val = true }, "1");
|
try testCase("{#if .val}1{/if}", .{ .val = true }, "1");
|
||||||
try testCase("{#for .vals |$v|=} {$v} {=/for}", .{ .vals = [_]u8{ 1, 2, 3 } }, "123");
|
try testCase("{#for .vals |$v|=} {$v} {=/for}", .{ .vals = [_]u8{ 1, 2, 3 } }, "123");
|
||||||
try testCase("{#for .vals |$val|}{$val}{/for}", .{ .vals = [_]u8{ 1, 2, 3 } }, "123");
|
try testCase("{#for .vals |$val|}{$val}{/for}", .{ .vals = [_]u8{ 1, 2, 3 } }, "123");
|
||||||
|
|
Loading…
Reference in a new issue