Skip to content

Commit ce7cd5a

Browse files
committed
add unit tests
1 parent 5f61b35 commit ce7cd5a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/stencil/merger_test.clj

+8
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,14 @@
108108
[{:text "{%=1%}"}]
109109
[{:action {:cmd :cmd/echo, :expression 1 :raw "{%=1%}"}}]
110110

111+
[{:text "{{%=1%}"}]
112+
[{:text "{"} {:text "{%=1%}"}]
113+
[{:text "{"} {:action {:cmd :cmd/echo, :expression 1, :raw "{%=1%}"}}]
114+
115+
[{:text "{%=x%2%}"}]
116+
[{:text "{%=x%2%}"}]
117+
[{:action {:cmd :cmd/echo, :expression '(:mod x 2), :raw "{%=x%2%}"}}]
118+
111119
[{:text "abc{%=1%}b"}]
112120
[{:text "abc"} {:text "{%=1%}"} {:text "b"}]
113121
[{:text "abc"} {:action {:cmd :cmd/echo, :expression 1 :raw "{%=1%}"}} {:text "b"}]

0 commit comments

Comments
 (0)