Testing a passing test
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
jaina heartles 2022-12-18 04:11:34 -08:00
parent 4f96e752a8
commit 08eec536a0
2 changed files with 2 additions and 2 deletions

View File

@ -11,4 +11,4 @@ pipeline:
commands:
- apk add sqlite sqlite-dev libpq libpq-dev curl xz
- curl https://ziglang.org/download/0.10.0/zig-linux-x86_64-0.10.0.tar.xz | xz -d | tar -x
- ./zig-linux-x86_64-0.10.0/zig build unit
- ./zig-linux-x86_64-0.10.0/zig build unit:template

View File

@ -1349,7 +1349,7 @@ test "template" {
try testCase("", .{}, "");
try testCase("abcd", .{}, "abcd");
try testCase("{.val}", .{ .val = 3 }, "3");
try testCase("{.v}", .{ .v = @as(usize, 3) }, "3");
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 |$val|}{$val}{/for}", .{ .vals = [_]u8{ 1, 2, 3 } }, "123");