Add #[cfg(test)]
for Transition in dfa
This commit is contained in:
parent
493c38ba37
commit
835357749b
1 changed files with 3 additions and 0 deletions
|
@ -55,6 +55,7 @@ where
|
||||||
#[derive(Hash, Eq, PartialEq, PartialOrd, Ord, Copy, Clone)]
|
#[derive(Hash, Eq, PartialEq, PartialOrd, Ord, Copy, Clone)]
|
||||||
pub(crate) struct State(u32);
|
pub(crate) struct State(u32);
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
#[derive(Hash, Eq, PartialEq, Clone, Copy)]
|
#[derive(Hash, Eq, PartialEq, Clone, Copy)]
|
||||||
pub(crate) enum Transition<R>
|
pub(crate) enum Transition<R>
|
||||||
where
|
where
|
||||||
|
@ -70,6 +71,7 @@ impl fmt::Debug for State {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
impl<R> fmt::Debug for Transition<R>
|
impl<R> fmt::Debug for Transition<R>
|
||||||
where
|
where
|
||||||
R: Ref,
|
R: Ref,
|
||||||
|
@ -166,6 +168,7 @@ impl State {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
impl<R> From<nfa::Transition<R>> for Transition<R>
|
impl<R> From<nfa::Transition<R>> for Transition<R>
|
||||||
where
|
where
|
||||||
R: Ref,
|
R: Ref,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue