File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
{{ macros_info() }}
6
6
7
+ ## Testing built-in filters
7
8
9
+ The result is: {{ (-35.0/2) | abs }}
10
+
11
+ {% set testing = 'hello world' %}
12
+
13
+ Saying: {{ greeting | upper }}
14
+
15
+ The length is: {{ greeting | length }}
Original file line number Diff line number Diff line change @@ -35,6 +35,14 @@ def test_pages():
35
35
variables = project .config .extra
36
36
assert VARIABLE_NAME in variables
37
37
assert variables .greeting in page .markdown
38
+
39
+ # test built-in filters (#253)
40
+ header = 'built-in filters'
41
+ assert page .find_text ("result" , header )
42
+ assert page .find_text ("result is: 17.5" , header ) # abs
43
+ assert page .find_text ("saying: HELLO WORLD" , header ) # upper
44
+ assert page .find_text ("length is: 12" , header ) # length
45
+
38
46
39
47
40
48
# ----------------
You can’t perform that action at this time.
0 commit comments