Skip to content

Commit

Permalink
better tests for context value as collection and string
Browse files Browse the repository at this point in the history
  • Loading branch information
noha committed Jul 7, 2017
1 parent 62892e2 commit 14590ea
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
tests
testSectionWithDotAsTokenListValue
| template result |
template := MustacheTemplate on: '{{# list }}<{{ . }}>{{/ list}}'.
result := template value: {
'list' -> #( a b c )
} asDictionary.
self assert: result = '<a><b><c>'
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
tests
testSectionWithDotAsTokenStringValue
| template result |
template := MustacheTemplate on: '{{# list }}<{{ . }}>{{/ list}}'.
result := template value: {
'list' -> 'abc'
} asDictionary.
self assert: result = '<abc>'

0 comments on commit 14590ea

Please # to comment.