Skip to content

Commit

Permalink
added a test for previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jan 10, 2011
1 parent ac9e4ee commit 539e001
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/Twig/Tests/Fixtures/expressions/ternary_operator.test
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ Twig supports the ternary operator
{{ 0 ? 'YES' : (1 ? 'YES1' : 'NO1') }}
{{ 0 ? 'YES' : (0 ? 'YES1' : 'NO1') }}
{{ 1 == 1 ? 'foo<br />':'' }}
{{ foo ~ (bar ? ('-' ~ bar) : '') }}
--DATA--
return array()
return array('foo' => 'foo', 'bar' => 'bar')
--EXPECT--
YES
NO
YES1
NO1
foo<br />
foo-bar

0 comments on commit 539e001

Please sign in to comment.