From 53ec61ac70b80fc1c523cff7264de540c74f6cf9 Mon Sep 17 00:00:00 2001 From: Gambhiro Date: Sat, 24 Dec 2016 13:34:22 +0000 Subject: [PATCH] upd example --- src/book/bookconfig_test.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/book/bookconfig_test.rs b/src/book/bookconfig_test.rs index 9faf4522..298a3d7b 100644 --- a/src/book/bookconfig_test.rs +++ b/src/book/bookconfig_test.rs @@ -20,9 +20,9 @@ fn it_parses_json_config() { let expected = r#"BookConfig { root: ".", - dest: "./book", - src: "./src", - theme_path: "./theme", + dest: "book", + src: "src", + theme_path: "theme", title: "mdBook Documentation", author: "Mathieu David", description: "Create book from markdown files. Like Gitbook but implemented in Rust", @@ -46,13 +46,11 @@ author = "Mathieu David" config.parse_from_toml_string(&text.to_string()); - println!("{:#?}", config); - let expected = r#"BookConfig { root: ".", - dest: "./book", - src: "./src", - theme_path: "./theme", + dest: "book", + src: "src", + theme_path: "theme", title: "mdBook Documentation", author: "Mathieu David", description: "Create book from markdown files. Like Gitbook but implemented in Rust",