From 08eec536a00fb66158233faf26db22835c0665e1 Mon Sep 17 00:00:00 2001 From: jaina heartles Date: Sun, 18 Dec 2022 04:11:34 -0800 Subject: [PATCH] Testing a passing test --- .woodpecker.yml | 2 +- src/template/lib.zig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 27dd3bc..c6c1ab2 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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 diff --git a/src/template/lib.zig b/src/template/lib.zig index 4698cab..78b8cb8 100644 --- a/src/template/lib.zig +++ b/src/template/lib.zig @@ -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");