Skip to content

Commit

Permalink
add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
erdos committed Jun 9, 2024
1 parent 5f61b35 commit ce7cd5a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/stencil/merger_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,14 @@
[{:text "{%=1%}"}]
[{:action {:cmd :cmd/echo, :expression 1 :raw "{%=1%}"}}]

[{:text "{{%=1%}"}]
[{:text "{"} {:text "{%=1%}"}]
[{:text "{"} {:action {:cmd :cmd/echo, :expression 1, :raw "{%=1%}"}}]

[{:text "{%=x%2%}"}]
[{:text "{%=x%2%}"}]
[{:action {:cmd :cmd/echo, :expression '(:mod x 2), :raw "{%=x%2%}"}}]

[{:text "abc{%=1%}b"}]
[{:text "abc"} {:text "{%=1%}"} {:text "b"}]
[{:text "abc"} {:action {:cmd :cmd/echo, :expression 1 :raw "{%=1%}"}} {:text "b"}]
Expand Down

0 comments on commit ce7cd5a

Please sign in to comment.