From 7215d60c6757495bf5c1bdbe827019aacc8819a6 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Tue, 22 Apr 2025 19:07:07 -0700 Subject: [PATCH] Remove remaining dummy book structure These tests are now all superseded by the new testsuite. --- Cargo.lock | 84 ---------- Cargo.toml | 2 - tests/cli/build.rs | 28 ---- tests/cli/cmd.rs | 7 - tests/cli/mod.rs | 2 - tests/cli_tests.rs | 2 - tests/dummy_book/index_html_test/SUMMARY.md | 11 -- tests/dummy_book/index_html_test/chapter_1.md | 1 - tests/dummy_book/mod.rs | 145 ------------------ tests/dummy_book/src/README.md | 5 - tests/dummy_book/src/SUMMARY.md | 23 --- tests/dummy_book/src/conclusion.md | 24 --- tests/dummy_book/src/example.rs | 6 - .../dummy_book/src/first/duplicate-headers.md | 9 -- .../src/first/heading-attributes.md | 5 - tests/dummy_book/src/first/includes.md | 3 - tests/dummy_book/src/first/index.md | 5 - tests/dummy_book/src/first/markdown.md | 55 ------- .../src/first/nested-test-with-anchors.rs | 11 -- tests/dummy_book/src/first/nested-test.rs | 1 - tests/dummy_book/src/first/nested.md | 31 ---- tests/dummy_book/src/first/no-headers.md | 5 - .../partially-included-test-with-anchors.rs | 11 -- .../src/first/partially-included-test.rs | 7 - tests/dummy_book/src/first/recursive.md | 2 - tests/dummy_book/src/first/unicode.md | 21 --- tests/dummy_book/src/intro.md | 3 - tests/dummy_book/src/second.md | 5 - tests/dummy_book/src/second/nested.md | 16 -- tests/dummy_book/src2/README.md | 1 - tests/dummy_book/src2/SUMMARY.md | 7 - tests/dummy_book/src2/first/README.md | 1 - tests/dummy_book/src2/second/README.md | 1 - tests/dummy_book/src2/second/index.md | 1 - .../dummy_book/summary-formatting/SUMMARY.md | 6 - 35 files changed, 547 deletions(-) delete mode 100644 tests/cli/build.rs delete mode 100644 tests/cli/cmd.rs delete mode 100644 tests/cli/mod.rs delete mode 100644 tests/cli_tests.rs delete mode 100644 tests/dummy_book/index_html_test/SUMMARY.md delete mode 100644 tests/dummy_book/index_html_test/chapter_1.md delete mode 100644 tests/dummy_book/mod.rs delete mode 100644 tests/dummy_book/src/README.md delete mode 100644 tests/dummy_book/src/SUMMARY.md delete mode 100644 tests/dummy_book/src/conclusion.md delete mode 100644 tests/dummy_book/src/example.rs delete mode 100644 tests/dummy_book/src/first/duplicate-headers.md delete mode 100644 tests/dummy_book/src/first/heading-attributes.md delete mode 100644 tests/dummy_book/src/first/includes.md delete mode 100644 tests/dummy_book/src/first/index.md delete mode 100644 tests/dummy_book/src/first/markdown.md delete mode 100644 tests/dummy_book/src/first/nested-test-with-anchors.rs delete mode 100644 tests/dummy_book/src/first/nested-test.rs delete mode 100644 tests/dummy_book/src/first/nested.md delete mode 100644 tests/dummy_book/src/first/no-headers.md delete mode 100644 tests/dummy_book/src/first/partially-included-test-with-anchors.rs delete mode 100644 tests/dummy_book/src/first/partially-included-test.rs delete mode 100644 tests/dummy_book/src/first/recursive.md delete mode 100644 tests/dummy_book/src/first/unicode.md delete mode 100644 tests/dummy_book/src/intro.md delete mode 100644 tests/dummy_book/src/second.md delete mode 100644 tests/dummy_book/src/second/nested.md delete mode 100644 tests/dummy_book/src2/README.md delete mode 100644 tests/dummy_book/src2/SUMMARY.md delete mode 100644 tests/dummy_book/src2/first/README.md delete mode 100644 tests/dummy_book/src2/second/README.md delete mode 100644 tests/dummy_book/src2/second/index.md delete mode 100644 tests/dummy_book/summary-formatting/SUMMARY.md diff --git a/Cargo.lock b/Cargo.lock index ae1b6f75..ef4c50ef 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -132,22 +132,6 @@ version = "1.0.95" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34ac096ce696dc2fcabef30516bb13c0a68a11d30131d3df6f04711467681b04" -[[package]] -name = "assert_cmd" -version = "2.0.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc1835b7f27878de8525dc71410b5a31cdcc5f230aed5ba5df968e09c201b23d" -dependencies = [ - "anstyle", - "bstr", - "doc-comment", - "libc", - "predicates", - "predicates-core", - "predicates-tree", - "wait-timeout", -] - [[package]] name = "autocfg" version = "1.4.0" @@ -458,12 +442,6 @@ version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "56254986775e3233ffa9c4d7d3faaf6d36a2c09d30b20687e9f88bc8bafc16c8" -[[package]] -name = "difflib" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6184e33543162437515c2e2b48714794e37845ec9851711914eec9d308f6ebe8" - [[package]] name = "digest" version = "0.10.7" @@ -485,12 +463,6 @@ dependencies = [ "syn 2.0.96", ] -[[package]] -name = "doc-comment" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10" - [[package]] name = "dunce" version = "1.0.5" @@ -566,15 +538,6 @@ dependencies = [ "windows-sys 0.59.0", ] -[[package]] -name = "float-cmp" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b09cf3155332e944990140d967ff5eceb70df778b34f77d8075db46e4704e6d8" -dependencies = [ - "num-traits", -] - [[package]] name = "fnv" version = "1.0.7" @@ -1255,7 +1218,6 @@ version = "0.4.48" dependencies = [ "ammonia", "anyhow", - "assert_cmd", "chrono", "clap", "clap_complete", @@ -1272,7 +1234,6 @@ dependencies = [ "once_cell", "opener", "pathdiff", - "predicates", "pretty_assertions", "pulldown-cmark 0.10.3", "regex", @@ -1662,36 +1623,6 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" -[[package]] -name = "predicates" -version = "3.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5d19ee57562043d37e82899fade9a22ebab7be9cef5026b07fda9cdd4293573" -dependencies = [ - "anstyle", - "difflib", - "float-cmp", - "normalize-line-endings", - "predicates-core", - "regex", -] - -[[package]] -name = "predicates-core" -version = "1.0.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "727e462b119fe9c93fd0eb1429a5f7647394014cf3c04ab2c0350eeb09095ffa" - -[[package]] -name = "predicates-tree" -version = "1.0.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72dd2d6d381dfb73a193c7fca536518d7caee39fc8503f74e7dc0be0531b425c" -dependencies = [ - "predicates-core", - "termtree", -] - [[package]] name = "pretty_assertions" version = "1.4.1" @@ -2147,12 +2078,6 @@ dependencies = [ "windows-sys 0.59.0", ] -[[package]] -name = "termtree" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f50febec83f5ee1df3015341d8bd429f2d1cc62bcba7ea2076759d315084683" - [[package]] name = "thiserror" version = "1.0.69" @@ -2398,15 +2323,6 @@ version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" -[[package]] -name = "wait-timeout" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f200f5b12eb75f8c1ed65abd4b2db8a6e1b138a20de009dacee265a2498f3f6" -dependencies = [ - "libc", -] - [[package]] name = "walkdir" version = "2.5.0" diff --git a/Cargo.toml b/Cargo.toml index 00afec38..e6d881bc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -64,8 +64,6 @@ elasticlunr-rs = { version = "3.0.2", optional = true } ammonia = { version = "4.0.0", optional = true } [dev-dependencies] -assert_cmd = "2.0.11" -predicates = "3.0.3" select = "0.6.0" semver = "1.0.17" snapbox = { version = "0.6.21", features = ["diff", "dir", "term-svg", "regex", "json"] } diff --git a/tests/cli/build.rs b/tests/cli/build.rs deleted file mode 100644 index 0daba9d7..00000000 --- a/tests/cli/build.rs +++ /dev/null @@ -1,28 +0,0 @@ -use crate::cli::cmd::mdbook_cmd; -use crate::dummy_book::DummyBook; - -#[test] -fn mdbook_cli_dummy_book_generates_index_html() { - let temp = DummyBook::new().build().unwrap(); - - // doesn't exist before - assert!(!temp.path().join("book").exists()); - - let mut cmd = mdbook_cmd(); - cmd.arg("build").current_dir(temp.path()); - cmd.assert() - .success() - .stderr( - predicates::str::is_match(r##"Stack depth exceeded in first[\\/]recursive.md."##) - .unwrap(), - ) - .stderr(predicates::str::contains( - r##"[INFO] (mdbook::book): Running the html backend"##, - )); - - // exists afterward - assert!(temp.path().join("book").exists()); - - let index_file = temp.path().join("book/index.html"); - assert!(index_file.exists()); -} diff --git a/tests/cli/cmd.rs b/tests/cli/cmd.rs deleted file mode 100644 index a612f3ad..00000000 --- a/tests/cli/cmd.rs +++ /dev/null @@ -1,7 +0,0 @@ -use assert_cmd::Command; - -pub(crate) fn mdbook_cmd() -> Command { - let mut cmd = Command::cargo_bin("mdbook").unwrap(); - cmd.env_remove("RUST_LOG"); - cmd -} diff --git a/tests/cli/mod.rs b/tests/cli/mod.rs deleted file mode 100644 index 4c2d1892..00000000 --- a/tests/cli/mod.rs +++ /dev/null @@ -1,2 +0,0 @@ -mod build; -mod cmd; diff --git a/tests/cli_tests.rs b/tests/cli_tests.rs deleted file mode 100644 index 0b005d01..00000000 --- a/tests/cli_tests.rs +++ /dev/null @@ -1,2 +0,0 @@ -mod cli; -mod dummy_book; diff --git a/tests/dummy_book/index_html_test/SUMMARY.md b/tests/dummy_book/index_html_test/SUMMARY.md deleted file mode 100644 index 37bf68cd..00000000 --- a/tests/dummy_book/index_html_test/SUMMARY.md +++ /dev/null @@ -1,11 +0,0 @@ -# Summary - ---- - -- [None of these should be treated as the "index chapter"]() - -# Part 1 - -- [Not this either]() -- [Chapter 1](./chapter_1.md) -- [And not this]() diff --git a/tests/dummy_book/index_html_test/chapter_1.md b/tests/dummy_book/index_html_test/chapter_1.md deleted file mode 100644 index b743fda3..00000000 --- a/tests/dummy_book/index_html_test/chapter_1.md +++ /dev/null @@ -1 +0,0 @@ -# Chapter 1 diff --git a/tests/dummy_book/mod.rs b/tests/dummy_book/mod.rs deleted file mode 100644 index f91ed9f0..00000000 --- a/tests/dummy_book/mod.rs +++ /dev/null @@ -1,145 +0,0 @@ -//! This will create an entire book in a temporary directory using some -//! dummy contents from the `tests/dummy-book/` directory. - -// Not all features are used in all test crates, so... -#![allow(dead_code, unused_variables, unused_imports, unused_extern_crates)] - -use anyhow::Context; -use mdbook::errors::*; -use mdbook::MDBook; -use std::fs::{self, File}; -use std::io::{Read, Write}; -use std::path::Path; -use tempfile::{Builder as TempFileBuilder, TempDir}; -use walkdir::WalkDir; - -/// Create a dummy book in a temporary directory, using the contents of -/// `SUMMARY_MD` as a guide. -/// -/// The "Nested Chapter" file contains a code block with a single -/// `assert!($TEST_STATUS)`. If you want to check MDBook's testing -/// functionality, `$TEST_STATUS` can be substitute for either `true` or -/// `false`. This is done using the `passing_test` parameter. -#[derive(Clone, Debug, PartialEq)] -pub struct DummyBook { - passing_test: bool, -} - -impl DummyBook { - /// Create a new `DummyBook` with all the defaults. - pub fn new() -> DummyBook { - DummyBook { passing_test: true } - } - - /// Whether the doc-test included in the "Nested Chapter" should pass or - /// fail (it passes by default). - pub fn with_passing_test(&mut self, test_passes: bool) -> &mut DummyBook { - self.passing_test = test_passes; - self - } - - /// Write a book to a temporary directory using the provided settings. - pub fn build(&self) -> Result { - let temp = TempFileBuilder::new() - .prefix("dummy_book-") - .tempdir() - .with_context(|| "Unable to create temp directory")?; - - let dummy_book_root = Path::new(env!("CARGO_MANIFEST_DIR")).join("tests/dummy_book"); - recursive_copy(&dummy_book_root, temp.path()).with_context(|| { - "Couldn't copy files into a \ - temporary directory" - })?; - - let sub_pattern = if self.passing_test { "true" } else { "false" }; - let files_containing_tests = [ - "src/first/nested.md", - "src/first/nested-test.rs", - "src/first/nested-test-with-anchors.rs", - "src/first/partially-included-test.rs", - "src/first/partially-included-test-with-anchors.rs", - ]; - for file in &files_containing_tests { - let path_containing_tests = temp.path().join(file); - replace_pattern_in_file(&path_containing_tests, "$TEST_STATUS", sub_pattern)?; - } - - Ok(temp) - } -} - -fn replace_pattern_in_file(filename: &Path, from: &str, to: &str) -> Result<()> { - let contents = fs::read_to_string(filename)?; - File::create(filename)?.write_all(contents.replace(from, to).as_bytes())?; - - Ok(()) -} - -/// Read the contents of the provided file into memory and then iterate through -/// the list of strings asserting that the file contains all of them. -pub fn assert_contains_strings>(filename: P, strings: &[&str]) { - let filename = filename.as_ref(); - let content = fs::read_to_string(filename).expect("Couldn't read the file's contents"); - - for s in strings { - assert!( - content.contains(s), - "Searching for {:?} in {}\n\n{}", - s, - filename.display(), - content - ); - } -} - -pub fn assert_doesnt_contain_strings>(filename: P, strings: &[&str]) { - let filename = filename.as_ref(); - let content = fs::read_to_string(filename).expect("Couldn't read the file's contents"); - - for s in strings { - assert!( - !content.contains(s), - "Found {:?} in {}\n\n{}", - s, - filename.display(), - content - ); - } -} - -/// Recursively copy an entire directory tree to somewhere else (a la `cp -r`). -fn recursive_copy, B: AsRef>(from: A, to: B) -> Result<()> { - let from = from.as_ref(); - let to = to.as_ref(); - - for entry in WalkDir::new(from) { - let entry = entry.with_context(|| "Unable to inspect directory entry")?; - - let original_location = entry.path(); - let relative = original_location - .strip_prefix(from) - .expect("`original_location` is inside the `from` directory"); - let new_location = to.join(relative); - - if original_location.is_file() { - if let Some(parent) = new_location.parent() { - fs::create_dir_all(parent).with_context(|| "Couldn't create directory")?; - } - - fs::copy(original_location, &new_location) - .with_context(|| "Unable to copy file contents")?; - } - } - - Ok(()) -} - -pub fn new_copy_of_example_book() -> Result { - let temp = TempFileBuilder::new().prefix("guide").tempdir()?; - - let guide = Path::new(env!("CARGO_MANIFEST_DIR")).join("guide"); - - recursive_copy(guide, temp.path())?; - - Ok(temp) -} diff --git a/tests/dummy_book/src/README.md b/tests/dummy_book/src/README.md deleted file mode 100644 index 7d946e35..00000000 --- a/tests/dummy_book/src/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Dummy Book - -This file is just here to cause the index preprocessor to run. - -Does a pretty good job, too. \ No newline at end of file diff --git a/tests/dummy_book/src/SUMMARY.md b/tests/dummy_book/src/SUMMARY.md deleted file mode 100644 index f310508b..00000000 --- a/tests/dummy_book/src/SUMMARY.md +++ /dev/null @@ -1,23 +0,0 @@ -# Summary - -[Dummy Book](README.md) - ---- - -[Introduction](intro.md) - -- [First Chapter](first/index.md) - - [Nested Chapter](first/nested.md) - - [Includes](first/includes.md) - - [Recursive](first/recursive.md) - - [Markdown](first/markdown.md) - - [Unicode](first/unicode.md) - - [No Headers](first/no-headers.md) - - [Duplicate Headers](first/duplicate-headers.md) - - [Heading Attributes](first/heading-attributes.md) -- [Second Chapter](second.md) - - [Nested Chapter](second/nested.md) - ---- - -[Conclusion](conclusion.md) diff --git a/tests/dummy_book/src/conclusion.md b/tests/dummy_book/src/conclusion.md deleted file mode 100644 index 5c29ec7d..00000000 --- a/tests/dummy_book/src/conclusion.md +++ /dev/null @@ -1,24 +0,0 @@ -# Conclusion - -

- -I put <HTML> in here!
-

- - - -Sneaky inline event . - -But regular inline is indexed. diff --git a/tests/dummy_book/src/example.rs b/tests/dummy_book/src/example.rs deleted file mode 100644 index 6b49705c..00000000 --- a/tests/dummy_book/src/example.rs +++ /dev/null @@ -1,6 +0,0 @@ -fn main() { - println!("Hello World!"); -# -# // You can even hide lines! :D -# println!("I am hidden! Expand the code snippet to see me"); -} diff --git a/tests/dummy_book/src/first/duplicate-headers.md b/tests/dummy_book/src/first/duplicate-headers.md deleted file mode 100644 index 83522b44..00000000 --- a/tests/dummy_book/src/first/duplicate-headers.md +++ /dev/null @@ -1,9 +0,0 @@ -# Duplicate headers - -This page validates behaviour of duplicate headers. - -# Header Text - -# Header Text - -# header-text diff --git a/tests/dummy_book/src/first/heading-attributes.md b/tests/dummy_book/src/first/heading-attributes.md deleted file mode 100644 index a09a22b6..00000000 --- a/tests/dummy_book/src/first/heading-attributes.md +++ /dev/null @@ -1,5 +0,0 @@ -# Heading Attributes {#attrs} - -## Heading with classes {.class1 .class2} - -## Heading with id and classes {#both .class1 .class2} diff --git a/tests/dummy_book/src/first/includes.md b/tests/dummy_book/src/first/includes.md deleted file mode 100644 index a5a2fef1..00000000 --- a/tests/dummy_book/src/first/includes.md +++ /dev/null @@ -1,3 +0,0 @@ -# Includes - -{{#include ../SUMMARY.md::}} \ No newline at end of file diff --git a/tests/dummy_book/src/first/index.md b/tests/dummy_book/src/first/index.md deleted file mode 100644 index 200672b9..00000000 --- a/tests/dummy_book/src/first/index.md +++ /dev/null @@ -1,5 +0,0 @@ -# First Chapter - -more text. - -## Some Section diff --git a/tests/dummy_book/src/first/markdown.md b/tests/dummy_book/src/first/markdown.md deleted file mode 100644 index ec2958e0..00000000 --- a/tests/dummy_book/src/first/markdown.md +++ /dev/null @@ -1,55 +0,0 @@ -# Markdown tests - -Tests for some markdown output. - -## Tables - -| foo | bar | -| --- | --- | -| baz | bim | - -## Footnotes - -Footnote example[^1], or with a word[^word]. - -[^1]: This is a footnote. - -[^word]: A longer footnote. - With multiple lines. [Link to unicode](unicode.md). - With a reference inside.[^1] - -There are multiple references to word[^word]. - -Footnote without a paragraph[^para] - -[^para]: - 1. Item one - 1. Sub-item - 2. Item two - -Footnote with multiple paragraphs[^multiple] - -[^define-before-use]: This is defined before it is referred to. - - -[^multiple]:

One

Two

Three

- -[^unused]: This footnote is defined by not used. - -Footnote name with wacky characters[^"wacky"] - -[^"wacky"]: Testing footnote id with special characters. - -Testing when referring to something earlier.[^define-before-use] - -## Strikethrough - -~~strikethrough example~~ - -## Tasklisks - -- [X] Apples -- [X] Broccoli -- [ ] Carrots diff --git a/tests/dummy_book/src/first/nested-test-with-anchors.rs b/tests/dummy_book/src/first/nested-test-with-anchors.rs deleted file mode 100644 index 783ab14d..00000000 --- a/tests/dummy_book/src/first/nested-test-with-anchors.rs +++ /dev/null @@ -1,11 +0,0 @@ -// 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 diff --git a/tests/dummy_book/src/first/nested-test.rs b/tests/dummy_book/src/first/nested-test.rs deleted file mode 100644 index 2bc46e01..00000000 --- a/tests/dummy_book/src/first/nested-test.rs +++ /dev/null @@ -1 +0,0 @@ -assert!($TEST_STATUS); diff --git a/tests/dummy_book/src/first/nested.md b/tests/dummy_book/src/first/nested.md deleted file mode 100644 index ae90763a..00000000 --- a/tests/dummy_book/src/first/nested.md +++ /dev/null @@ -1,31 +0,0 @@ -# Nested Chapter - -This file has some testable code. - -```rust -assert!($TEST_STATUS); -``` - -## Some Section - -```rust -{{#include nested-test.rs}} -``` - -## Anchors include the part of a file between special comments - -```rust -{{#include nested-test-with-anchors.rs:myanchor}} -``` - -## Rustdoc include adds the rest of the file as hidden - -```rust -{{#rustdoc_include partially-included-test.rs:5:7}} -``` - -## Rustdoc include works with anchors too - -```rust -{{#rustdoc_include partially-included-test-with-anchors.rs:rustdoc-include-anchor}} -``` diff --git a/tests/dummy_book/src/first/no-headers.md b/tests/dummy_book/src/first/no-headers.md deleted file mode 100644 index 5d799aa6..00000000 --- a/tests/dummy_book/src/first/no-headers.md +++ /dev/null @@ -1,5 +0,0 @@ -Capybara capybara capybara. - -Capybara capybara capybara. - -ThisLongWordIsIncludedSoWeCanCheckThatSufficientlyLongWordsAreOmittedFromTheSearchIndex. diff --git a/tests/dummy_book/src/first/partially-included-test-with-anchors.rs b/tests/dummy_book/src/first/partially-included-test-with-anchors.rs deleted file mode 100644 index 17b6afef..00000000 --- a/tests/dummy_book/src/first/partially-included-test-with-anchors.rs +++ /dev/null @@ -1,11 +0,0 @@ -fn some_other_function() { - // ANCHOR: unused-anchor-that-should-be-stripped - assert!($TEST_STATUS); - // ANCHOR_END: unused-anchor-that-should-be-stripped -} - -// ANCHOR: rustdoc-include-anchor -fn main() { - some_other_function(); -} -// ANCHOR_END: rustdoc-include-anchor diff --git a/tests/dummy_book/src/first/partially-included-test.rs b/tests/dummy_book/src/first/partially-included-test.rs deleted file mode 100644 index 1f8421b5..00000000 --- a/tests/dummy_book/src/first/partially-included-test.rs +++ /dev/null @@ -1,7 +0,0 @@ -fn some_function() { - assert!($TEST_STATUS); -} - -fn main() { - some_function(); -} diff --git a/tests/dummy_book/src/first/recursive.md b/tests/dummy_book/src/first/recursive.md deleted file mode 100644 index cb82a52f..00000000 --- a/tests/dummy_book/src/first/recursive.md +++ /dev/null @@ -1,2 +0,0 @@ -Around the world, around the world -{{#include recursive.md}} diff --git a/tests/dummy_book/src/first/unicode.md b/tests/dummy_book/src/first/unicode.md deleted file mode 100644 index 160cc367..00000000 --- a/tests/dummy_book/src/first/unicode.md +++ /dev/null @@ -1,21 +0,0 @@ -# Unicode stress tests - -Please be careful editing, this contains carefully crafted characters. - -Two byte character: spatiëring - -Combining character: spatiëring - -Three byte character: 书こんにちは - -Four byte character: 𐌀‮𐌁‮𐌂‮𐌃‮𐌄‮𐌅‮𐌆‮𐌇‮𐌈‬ - -Right-to-left: مرحبا - -Emoticons: 🔊 😍 💜 1️⃣ - -right-to-left mark: hello באמת!‏ - - -Zalgo: ǫ̛̖̱̗̝͈̋͒͋̏ͥͫ̒̆ͩ̏͌̾͊͐ͪ̾̚ - diff --git a/tests/dummy_book/src/intro.md b/tests/dummy_book/src/intro.md deleted file mode 100644 index 1990ef58..00000000 --- a/tests/dummy_book/src/intro.md +++ /dev/null @@ -1,3 +0,0 @@ -# Introduction - -Here's some interesting text... \ No newline at end of file diff --git a/tests/dummy_book/src/second.md b/tests/dummy_book/src/second.md deleted file mode 100644 index adf4fca6..00000000 --- a/tests/dummy_book/src/second.md +++ /dev/null @@ -1,5 +0,0 @@ -# Second Chapter - -This makes sure you can insert runnable Rust files. - -{{#playground example.rs}} diff --git a/tests/dummy_book/src/second/nested.md b/tests/dummy_book/src/second/nested.md deleted file mode 100644 index faf1187f..00000000 --- a/tests/dummy_book/src/second/nested.md +++ /dev/null @@ -1,16 +0,0 @@ -# Testing relative links for the print page - -When we link to [the first section](../first/nested.md), it should work on -both the print page and the non-print page. - -A [fragment link](#some-section) should work. - -Link [outside](../../std/foo/bar.html). - -![Some image](../images/picture.png) - -HTML Link - -raw html - -## Some section diff --git a/tests/dummy_book/src2/README.md b/tests/dummy_book/src2/README.md deleted file mode 100644 index ba23d94e..00000000 --- a/tests/dummy_book/src2/README.md +++ /dev/null @@ -1 +0,0 @@ -# Root README diff --git a/tests/dummy_book/src2/SUMMARY.md b/tests/dummy_book/src2/SUMMARY.md deleted file mode 100644 index 6b279fc4..00000000 --- a/tests/dummy_book/src2/SUMMARY.md +++ /dev/null @@ -1,7 +0,0 @@ -# This dummy book is for testing the conversion of README.md to index.html by IndexPreprocessor - -[Root README](README.md) - -- [1st README](first/README.md) -- [2nd README](second/README.md) - - [2nd index](second/index.md) diff --git a/tests/dummy_book/src2/first/README.md b/tests/dummy_book/src2/first/README.md deleted file mode 100644 index d062d2cc..00000000 --- a/tests/dummy_book/src2/first/README.md +++ /dev/null @@ -1 +0,0 @@ -# First README diff --git a/tests/dummy_book/src2/second/README.md b/tests/dummy_book/src2/second/README.md deleted file mode 100644 index be81f856..00000000 --- a/tests/dummy_book/src2/second/README.md +++ /dev/null @@ -1 +0,0 @@ -# Second README diff --git a/tests/dummy_book/src2/second/index.md b/tests/dummy_book/src2/second/index.md deleted file mode 100644 index f2327450..00000000 --- a/tests/dummy_book/src2/second/index.md +++ /dev/null @@ -1 +0,0 @@ -# Second index diff --git a/tests/dummy_book/summary-formatting/SUMMARY.md b/tests/dummy_book/summary-formatting/SUMMARY.md deleted file mode 100644 index 336218d8..00000000 --- a/tests/dummy_book/summary-formatting/SUMMARY.md +++ /dev/null @@ -1,6 +0,0 @@ -# Summary formatting tests - -- [*Italic* `code` \*escape\* \`escape2\`](formatted-summary.md) -- [Soft -line break](soft.md) -- [\](escaped-tag.md)