Skip to content

Commit

Permalink
Fix test case for go1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean-Coakley committed Oct 2, 2019
1 parent a5b6525 commit 23bdb16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dict_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ func TestOmit(t *testing.T) {

func TestGet(t *testing.T) {
tests := map[string]string{
`{{- $d := dict "one" 1 }}{{ get $d "one" -}}`: "1",
`{{- $d := dict "one" 1 }}{{ get $d "one" -}}`: "1",
`{{- $d := dict "one" 1 "two" "2" }}{{ get $d "two" -}}`: "2",
`{{- $d := dict }}{{ get $d "two" -}}`: "",
`{{- $d := dict "" "" }}{{ get $d "two" -}}`: "",
}
for tpl, expect := range tests {
if err := runt(tpl, expect); err != nil {
Expand Down

0 comments on commit 23bdb16

Please sign in to comment.