aboutsummaryrefslogblamecommitdiffstats
path: root/tests/text.rs
blob: 9c2b0a0e52535dc204c6da54ce321777d595b4c7 (plain) (tree)
1
2
3
4
5
6
7
8

                      
                                 

       
           
               
                                   




                                   
                                 




                                     
                                       



                                                  
extern crate markdown;
use markdown::to_html;
use pretty_assertions::assert_eq;

#[test]
fn text() {
    assert_eq!(
        to_html("hello $.;'there"),
        "<p>hello $.;'there</p>",
        "should support ascii text"
    );

    assert_eq!(
        to_html("Foo χρῆν"),
        "<p>Foo χρῆν</p>",
        "should support unicode text"
    );

    assert_eq!(
        to_html("Multiple     spaces"),
        "<p>Multiple     spaces</p>",
        "should preserve internal spaces verbatim"
    );
}