debug
This commit is contained in:
parent
9f401bda53
commit
bb8fa818d2
9 changed files with 1322 additions and 78 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::format_debug_output::{ast::*, parse_input};
|
||||
use proptest::prelude::*;
|
||||
use proptest::proptest;
|
||||
|
||||
|
|
@ -155,7 +155,8 @@ impl Token<'static> {
|
|||
impl Delimited<'static> {
|
||||
#[cfg(test)]
|
||||
fn arb(token: impl Strategy<Value = Token<'static>>) -> impl Strategy<Value = Self> {
|
||||
(Atom::arb(), any::<Delimiter>(), Segments::arb(token)).prop_map(
|
||||
use proptest::option::*;
|
||||
(of(Atom::arb()), any::<Delimiter>(), Segments::arb(token)).prop_map(
|
||||
|(prefix, delimiter, contents)| Self {
|
||||
prefix,
|
||||
delimiter,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue