Compare commits
5 commits
10f3f33048
...
64bdf1c48a
Author | SHA1 | Date | |
---|---|---|---|
64bdf1c48a | |||
08eec536a0 | |||
4f96e752a8 | |||
19585a295d | |||
9fd8effba6 |
2 changed files with 15 additions and 1 deletions
14
.woodpecker.yml
Normal file
14
.woodpecker.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
clone:
|
||||
git:
|
||||
image: woodpeckerci/plugin-git
|
||||
settings:
|
||||
depth: 1
|
||||
lfs: false
|
||||
|
||||
pipeline:
|
||||
unit-tests:
|
||||
image: alpine
|
||||
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:template
|
|
@ -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) }, "4");
|
||||
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");
|
||||
|
|
Loading…
Reference in a new issue