Add tests for the 🔚 bullshitium.
This commit is contained in:
parent
b0b287cd47
commit
cf5d3ed745
@ -0,0 +1,3 @@
|
|||||||
|
foo
|
||||||
|
:end:
|
||||||
|
bar
|
@ -0,0 +1,2 @@
|
|||||||
|
foo
|
||||||
|
:end:
|
@ -3,7 +3,6 @@ use nom::character::complete::space0;
|
|||||||
use nom::sequence::tuple;
|
use nom::sequence::tuple;
|
||||||
|
|
||||||
use super::paragraph::paragraph;
|
use super::paragraph::paragraph;
|
||||||
use super::util::get_consumed;
|
|
||||||
use super::util::org_line_ending;
|
use super::util::org_line_ending;
|
||||||
use super::util::start_of_line;
|
use super::util::start_of_line;
|
||||||
use super::OrgSource;
|
use super::OrgSource;
|
||||||
|
@ -84,7 +84,6 @@ impl<'s> OrgSource<'s> {
|
|||||||
|
|
||||||
pub(crate) fn get_until_end_of_str(&self, other: &'s str) -> OrgSource<'s> {
|
pub(crate) fn get_until_end_of_str(&self, other: &'s str) -> OrgSource<'s> {
|
||||||
let full_source_start = self.full_source.as_ptr() as usize;
|
let full_source_start = self.full_source.as_ptr() as usize;
|
||||||
let full_found_end = full_source_start + self.full_source.len();
|
|
||||||
let other_start = other.as_ptr() as usize - full_source_start;
|
let other_start = other.as_ptr() as usize - full_source_start;
|
||||||
let other_end = other_start + other.len();
|
let other_end = other_start + other.len();
|
||||||
debug_assert!(other_start >= self.start);
|
debug_assert!(other_start >= self.start);
|
||||||
|
Loading…
Reference in New Issue
Block a user