use super::* from tests submodules

This commit is contained in:
Jeong YunWon 2023-02-22 21:01:39 +09:00
parent 97a08ee77b
commit e26369a34e
3 changed files with 5 additions and 5 deletions

View file

@ -133,12 +133,12 @@ impl<U> crate::fold::Fold<U> for ConstantOptimizer {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use super::*;
#[cfg(feature = "constant-optimization")] #[cfg(feature = "constant-optimization")]
#[test] #[test]
fn test_constant_opt() { fn test_constant_opt() {
use super::*; use crate::{fold::Fold, *};
use crate::fold::Fold;
use crate::*;
let start = Default::default(); let start = Default::default();
let end = None; let end = None;

View file

@ -96,7 +96,7 @@ impl Location {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use crate::Location; use super::*;
#[test] #[test]
fn test_gt() { fn test_gt() {

View file

@ -151,7 +151,7 @@ fn is_starred(exp: &ast::Expr) -> bool {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use crate::lexer::LexicalErrorType; use super::*;
use crate::parser::{parse_program, ParseErrorType}; use crate::parser::{parse_program, ParseErrorType};
macro_rules! function_and_lambda { macro_rules! function_and_lambda {