use flatiron::convert;
use std::fs;
#[test]
fn example() {
let textile = String::from("h1. Is this thing on?");
let html = convert(textile);
assert_eq!(html, String::from("
Is this thing on?
\n"));
}
#[test]
fn textism() {
let textile = fs::read_to_string("samples/textism.textile")
.expect("Something went wrong while reading the textile file");
let target_html = fs::read_to_string("tests/html/textism.html")
.expect("Something went wrong while reading the HTML file");
let html = convert(textile);
assert_eq!(target_html, html)
}