Skip to content

Commit

Permalink
Add a test for stringLength.
Browse files Browse the repository at this point in the history
  • Loading branch information
leekchan committed Jul 13, 2015
1 parent 9051802 commit 69ec647
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gtf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ func TestGtfFuncMap(t *testing.T) {
ParseTest(&buffer, "{{ \"\" | stringDefault \"default value\" }}")
AssertEqual(t, &buffer, "default value")

ParseTest(&buffer, "{{ \"The Go Programming Language\" | stringLength }}")
AssertEqual(t, &buffer, "27")

ParseTest(&buffer, "{{ \"The Go Programming Language\" | stringLower }}")
AssertEqual(t, &buffer, "the go programming language")
}

0 comments on commit 69ec647

Please sign in to comment.