summaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
authorShogo Takata <peshogo+github.com@gmail.com>2022-03-26 15:34:07 +0900
committerShogo Takata <peshogo+github.com@gmail.com>2022-03-26 15:34:07 +0900
commit0dca4d9b9f9180a4f0b976dc3d0f81521c5f84fc (patch)
treeddd62fab6794f954b0076592949639258a1d6826 /src/config.rs
parentb85c3035fef8c572e4e8953ef8ace55e2e77b771 (diff)
add tests
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs16
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]