Skip to content

Commit

Permalink
test: update for sample
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Nov 27, 2023
1 parent fe42086 commit a315196
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions local_server/src/scraper/chunk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,16 @@ mod tests {
## hello world
### hello world
## Block 2
"#;

let sections = by_section(src);

assert_eq!(sections.len(), 2);
assert_eq!(sections.len(), 3);
assert_eq!(sections[0].data, "# hello world\n");
assert_eq!(sections[1].data, "## hello world\n\n### hello world\n");
assert_eq!(sections[1].data, "## hello world\n\n### hello world\n\n");
assert_eq!(sections[2].data, "## Block 2\n\n");
}
}

0 comments on commit a315196

Please sign in to comment.