mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-18 22:58:10 +01:00
Test is (even|odd) by y
git-svn-id: file:///svn/phpbb/trunk@9110 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
528bd80651
commit
f816e67c36
@ -203,6 +203,13 @@ class phpbb_template_template_test extends phpbb_test_case
|
|||||||
array('loop.inner'),
|
array('loop.inner'),
|
||||||
"first\n0\n0\n2\nx\nset\n1\n1\n2\ny\nset\nlast",
|
"first\n0\n0\n2\nx\nset\n1\n1\n2\ny\nset\nlast",
|
||||||
),
|
),
|
||||||
|
array(
|
||||||
|
'loop_expressions.html',
|
||||||
|
array(),
|
||||||
|
array('loop' => array(array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array())),
|
||||||
|
array(),
|
||||||
|
"on\non\non\non\noff\noff\noff\noff\non\non\non\non\n\noff\noff\noff\non\non\non\noff\noff\noff\non\non\non",
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
11
tests/template/templates/loop_expressions.html
Normal file
11
tests/template/templates/loop_expressions.html
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<!-- BEGIN loop -->
|
||||||
|
|
||||||
|
<!-- IF loop.S_ROW_NUM is even by 4 -->on<!-- ELSE -->off<!-- ENDIF -->
|
||||||
|
|
||||||
|
<!-- END loop -->
|
||||||
|
|
||||||
|
<!-- BEGIN loop -->
|
||||||
|
|
||||||
|
<!-- IF loop.S_ROW_NUM is odd by 3 -->on<!-- ELSE -->off<!-- ENDIF -->
|
||||||
|
|
||||||
|
<!-- END loop -->
|
Loading…
x
Reference in New Issue
Block a user