docs and line/offset numbers in paths
This commit is contained in:
parent
af09bcd403
commit
2d9a029130
9 changed files with 366 additions and 116 deletions
|
|
@ -1,6 +1,6 @@
|
|||
use super::ast::*;
|
||||
use crate::format_debug_output::parse_input;
|
||||
use crate::format_debug_output::{Config, into_spans};
|
||||
use crate::parse_input;
|
||||
use crate::{Config, into_spans};
|
||||
use proptest::prelude::*;
|
||||
use proptest::proptest;
|
||||
|
||||
|
|
@ -156,13 +156,16 @@ impl Delimited<'static> {
|
|||
#[cfg(test)]
|
||||
fn arb(token: impl Strategy<Value = Token<'static>>) -> impl Strategy<Value = Self> {
|
||||
use proptest::option::*;
|
||||
(of(Atom::arb()), any::<Delimiter>(), Segments::arb(token)).prop_map(
|
||||
|(prefix, delimiter, contents)| Self {
|
||||
(
|
||||
of((Atom::arb(), Space::arb())),
|
||||
any::<Delimiter>(),
|
||||
Segments::arb(token),
|
||||
)
|
||||
.prop_map(|(prefix, delimiter, contents)| Self {
|
||||
prefix,
|
||||
delimiter,
|
||||
contents,
|
||||
},
|
||||
)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue