Use non-comptime ints in tests
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
jaina heartles 2022-12-18 05:44:13 -08:00
parent 4ec3a61bb6
commit 1d65984323

View file

@ -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");