Debian Codegraph @

tests/testthat/_snaps/parse.md

raw symbols SCIP
1 # printing parsed document works [plain]
2
3 Code
4 print(x, n = Inf)
5 Message
6 Humans of A New Hope
7 {# put a comment here #}
8 {% for person in people -%}
9 {% if "A New Hope" in person.films and default(person.species, "Unknown") == "Human" -%}
10 * {{ person.name }} ({{ person.homeworld }})
11 {% endif -%}
12 {% endfor -%}
13
14 ---
15
16 Code
17 print(x, n = 5)
18 Message
19 Humans of A New Hope
20 {# put a comment here #}
21 {% for person in people -%}
22 {% if "A New Hope" in person.films and default(person.species, "Unknown") == "Human" -%}
23 * {{ person.name }} ({{ person.homeworld }})
24 i ... with 2 more lines
25
26 # printing parsed document works [ansi]
27
28 Code
29 print(x, n = Inf)
30 Message
31 Humans of A New Hope
32 {# put a comment here #}
33 {% for person in people -%}
34 {% if "A New Hope" in person.films and default(person.species, "Unknown") == "Human" -%}
35 * {{ person.name }} ({{ person.homeworld }})
36 {% endif -%}
37 {% endfor -%}
38
39 ---
40
41 Code
42 print(x, n = 5)
43 Message
44 Humans of A New Hope
45 {# put a comment here #}
46 {% for person in people -%}
47 {% if "A New Hope" in person.films and default(person.species, "Unknown") == "Human" -%}
48 * {{ person.name }} ({{ person.homeworld }})
49 i ... with 2 more lines
50
51 # printing parsed document works [unicode]
52
53 Code
54 print(x, n = Inf)
55 Message
56 Humans of A New Hope
57 {# put a comment here #}
58 {% for person in people -%}
59 {% if "A New Hope" in person.films and default(person.species, "Unknown") == "Human" -%}
60 * {{ person.name }} ({{ person.homeworld }})
61 {% endif -%}
62 {% endfor -%}
63
64 ---
65
66 Code
67 print(x, n = 5)
68 Message
69 Humans of A New Hope
70 {# put a comment here #}
71 {% for person in people -%}
72 {% if "A New Hope" in person.films and default(person.species, "Unknown") == "Human" -%}
73 * {{ person.name }} ({{ person.homeworld }})
74 ℹ … with 2 more lines
75
76 # printing parsed document works [fancy]
77
78 Code
79 print(x, n = Inf)
80 Message
81 Humans of A New Hope
82 {# put a comment here #}
83 {% for person in people -%}
84 {% if "A New Hope" in person.films and default(person.species, "Unknown") == "Human" -%}
85 * {{ person.name }} ({{ person.homeworld }})
86 {% endif -%}
87 {% endfor -%}
88
89 ---
90
91 Code
92 print(x, n = 5)
93 Message
94 Humans of A New Hope
95 {# put a comment here #}
96 {% for person in people -%}
97 {% if "A New Hope" in person.films and default(person.species, "Unknown") == "Human" -%}
98 * {{ person.name }} ({{ person.homeworld }})
99 ℹ … with 2 more lines
100
101 # print spans with overlap works [plain]
102
103 Code
104 print(x)
105 Message
106 {# {{ this }} is a {{ comment }} #}
107
108 # print spans with overlap works [ansi]
109
110 Code
111 print(x)
112 Message
113 {# {{ this }} is a {{ comment }} #}
114
115 # print spans with overlap works [unicode]
116
117 Code
118 print(x)
119 Message
120 {# {{ this }} is a {{ comment }} #}
121
122 # print spans with overlap works [fancy]
123
124 Code
125 print(x)
126 Message
127 {# {{ this }} is a {{ comment }} #}
128
129 # parse error [plain]
130
131 Code
132 parse_template("Hello {{ name }!")
133 Condition
134 Error in `parse_template()`:
135 ! Problem encountered while parsing template.
136 Caused by error:
137 ! Unexpected '}'.
138 i Error occurred on line 1 and column 15.
139
140 # parse error [ansi]
141
142 Code
143 parse_template("Hello {{ name }!")
144 Condition
145 Error in `parse_template()`:
146 ! Problem encountered while parsing template.
147 Caused by error:
148 ! Unexpected '}'.
149 i Error occurred on line 1 and column 15.
150
151 # parse error [unicode]
152
153 Code
154 parse_template("Hello {{ name }!")
155 Condition
156 Error in `parse_template()`:
157 ! Problem encountered while parsing template.
158 Caused by error:
159 ! Unexpected '}'.
160 ℹ Error occurred on line 1 and column 15.
161
162 # parse error [fancy]
163
164 Code
165 parse_template("Hello {{ name }!")
166 Condition
167 Error in `parse_template()`:
168 ! Problem encountered while parsing template.
169 Caused by error:
170 ! Unexpected '}'.
171 ℹ Error occurred on line 1 and column 15.
172