Skip to content

Commit

Permalink
reproduce template loop int/int64 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
eikenb committed Aug 12, 2019
1 parent 9e45d49 commit 769bbbb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions template/template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1249,6 +1249,18 @@ func TestTemplate_Execute(t *testing.T) {
"012",
false,
},
{
// GH-1143
"helper_loop_var",
&NewTemplateInput{
Contents: `{{$n := 3 }}{{ range $i := loop $n }}{{ $i }}{{ end }}`,
},
&ExecuteInput{
Brain: NewBrain(),
},
"012",
false,
},
{
"helper_join",
&NewTemplateInput{
Expand Down

0 comments on commit 769bbbb

Please sign in to comment.