mirror of
https://github.com/lise-henry/crowbook
synced 2024-11-18 00:13:55 +01:00
tests/book.rs: updated so it works again with changed api
This commit is contained in:
parent
dcb2b8070f
commit
dae4b02a00
@ -1,17 +1,17 @@
|
||||
extern crate crowbook;
|
||||
use crowbook::Book;
|
||||
use crowbook::{Book, InfoLevel};
|
||||
use std::io;
|
||||
|
||||
#[test]
|
||||
fn test_book() {
|
||||
let book = Book::new_from_file(&format!("{}/{}", env!("CARGO_MANIFEST_DIR"), "tests/test.book"), false).unwrap();
|
||||
let book = Book::new_from_file(&format!("{}/{}", env!("CARGO_MANIFEST_DIR"), "tests/test.book"), InfoLevel::Error).unwrap();
|
||||
book.render_html(&mut io::sink()).unwrap();
|
||||
book.render_tex(&mut io::sink()).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn book_example() {
|
||||
let book = Book::new_from_file(&format!("{}/{}", env!("CARGO_MANIFEST_DIR"), "config.book"), false).unwrap();
|
||||
let book = Book::new_from_file(&format!("{}/{}", env!("CARGO_MANIFEST_DIR"), "config.book"), InfoLevel::Error).unwrap();
|
||||
book.render_html(&mut io::sink()).unwrap();
|
||||
book.render_tex(&mut io::sink()).unwrap();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user