aboutsummaryrefslogblamecommitdiffstats
path: root/tests/misc_soft_break.rs
blob: 43e2f3dd002b79954535f6051a70f8f0c99ebaab (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

                         
                                 








                                     




                                                
 
extern crate micromark;
use micromark::micromark;
use pretty_assertions::assert_eq;

#[test]
fn soft_break() {
    assert_eq!(
        micromark("foo\nbaz"),
        "<p>foo\nbaz</p>",
        "should support line endings"
    );

    assert_eq!(
        micromark("foo \n baz"),
        "<p>foo\nbaz</p>",
        "should trim spaces around line endings"
    );
}