Skip to content

Commit

Permalink
some more test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
amitu committed Nov 4, 2023
1 parent bd79f47 commit f1e33ce
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions ftd/src/p1/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,31 +454,35 @@ fn with_dash_dash() {
"#
),
&ftd::p1::Section::with_name("hello")
.add_sub_section(ftd::p1::Section::with_name("realm.rr.step.body").and_body(
r#"
.add_sub_section(
ftd::p1::Section::with_name("realm.rr.step.body").and_body(&indoc!(
r#"
{
"body": "-- h0: Hello World\n\n-- markup:\n\ndemo cr 1\n",
"kind": "content",
"track": "amitu/index",
"version": "2020-11-16T04:13:14.642892+00:00"
}"#,
))
)),
)
.list(),
);
}

#[test]
fn indented_body() {
p(
"
&indoc!(
"
-- markup:
hello world is
not enough
lol
",
"
),
&ftd::p1::Section::with_name("markup")
.and_body("hello world is\n\n not enough\n\n lol")
.list(),
Expand Down

0 comments on commit f1e33ce

Please sign in to comment.