Skip to content

Commit

Permalink
Testcase #155: case with default not working (at least using JsExpres…
Browse files Browse the repository at this point in the history
…sionHandler)
  • Loading branch information
chbloemer committed Sep 28, 2017
1 parent 4d34c07 commit 5076b79
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/resources/issues/155.html
@@ -0,0 +1,3 @@

<p>you have 10 friends</p>
<p>you have a default tag</p>
17 changes: 17 additions & 0 deletions src/test/resources/issues/155.jade
@@ -0,0 +1,17 @@
- var friends = 10
case friends
when 0
p you have no friends
when 1
p you have a friend
default
p you have #{friends} friends

- var tagType = "default"
case tagType
when "p"
p you have no p
when "br"
p you have a br
default
p you have a #{tagType} tag

0 comments on commit 5076b79

Please sign in to comment.