diff options
author | Shogo Takata <peshogo+github.com@gmail.com> | 2022-03-26 15:34:07 +0900 |
---|---|---|
committer | Shogo Takata <peshogo+github.com@gmail.com> | 2022-03-26 15:34:07 +0900 |
commit | 0dca4d9b9f9180a4f0b976dc3d0f81521c5f84fc (patch) | |
tree | ddd62fab6794f954b0076592949639258a1d6826 /src/config.rs | |
parent | b85c3035fef8c572e4e8953ef8ace55e2e77b771 (diff) |
add tests
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index 181aad66..6ed1e895 100644 --- a/src/config.rs +++ b/src/config.rs @@ -816,6 +816,22 @@ mod tests { } #[test] + fn disable_runnable() { + let src = r#" + [book] + title = "Some Book" + description = "book book book" + authors = ["Shogo Takata"] + + [output.html.playground] + runnable = false + "#; + + let got = Config::from_str(src).unwrap(); + assert_eq!(got.html_config().unwrap().playground.runnable, false); + } + + #[test] fn edition_2015() { let src = r#" [book] |