Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testcase #155: case with default not working (at least using JsExpres…
…sionHandler)
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
<p>you have 10 friends</p> | ||
<p>you have a default tag</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |