diff --git a/src/utils/first/builder.rs b/src/utils/first/builder.rs index 8a12ef8..5891a3c 100644 --- a/src/utils/first/builder.rs +++ b/src/utils/first/builder.rs @@ -201,6 +201,7 @@ impl<'grammar> FirstBuilder<'grammar> { } } +#[cfg(test)] mod tests { use crate::utils::first::builder::FirstBuilder; use bnf::Term; diff --git a/src/utils/follow/builder.rs b/src/utils/follow/builder.rs index 81d4929..ce057f8 100644 --- a/src/utils/follow/builder.rs +++ b/src/utils/follow/builder.rs @@ -177,8 +177,8 @@ mod tests { use crate::utils::follow::builder::FollowBuilder; use crate::utils::follow::Follow; use bnf::{Grammar, Term}; - use std::collections::{HashMap, HashSet}; - use std::ops::BitAnd; + use std::collections::HashSet; + use std::str::FromStr; pub fn grammar() -> Grammar {