summaryrefslogtreecommitdiffstats
path: root/vendor/mdbook/tests/dummy_book/src/first/nested-test-with-anchors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/mdbook/tests/dummy_book/src/first/nested-test-with-anchors.rs')
-rw-r--r--vendor/mdbook/tests/dummy_book/src/first/nested-test-with-anchors.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/mdbook/tests/dummy_book/src/first/nested-test-with-anchors.rs b/vendor/mdbook/tests/dummy_book/src/first/nested-test-with-anchors.rs
new file mode 100644
index 000000000..783ab14de
--- /dev/null
+++ b/vendor/mdbook/tests/dummy_book/src/first/nested-test-with-anchors.rs
@@ -0,0 +1,11 @@
+// The next line will cause a `testing` test to fail if the anchor feature is broken in such a way
+// that the whole file gets mistakenly included.
+assert!(!$TEST_STATUS);
+
+// ANCHOR: myanchor
+// ANCHOR: unendinganchor
+// The next line will cause a `rendered_output` test to fail if the anchor feature is broken in
+// such a way that the content between anchors isn't included.
+// unique-string-for-anchor-test
+assert!($TEST_STATUS);
+// ANCHOR_END: myanchor