Skip to content

Commit 7911e56

Browse files
committed
test: cover editable playground includes
1 parent 69287f2 commit 7911e56

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

tests/testsuite/includes.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ fn playground_include() {
8383
</span><span class="boring"> // You can even hide lines! :D
8484
</span><span class="boring"> println!("I am hidden! Expand the code snippet to see me");
8585
</span>}</code></pre>
86+
<h2 id="editable-playground"><a class="header" href="#editable-playground">Editable Playground</a></h2>
87+
<pre class="playground"><code class="language-rust editable">fn main() {
88+
println!("Hello World!");
89+
<span class="boring">
90+
</span><span class="boring"> // You can even hide lines! :D
91+
</span><span class="boring"> println!("I am hidden! Expand the code snippet to see me");
92+
</span>}</code></pre>
8693
"##]]);
8794
}
8895

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# Playground Includes
22

33
{{#playground example.rs}}
4+
5+
## Editable Playground
6+
7+
{{#playground example.rs editable}}

0 commit comments

Comments
 (0)