diff options
Diffstat (limited to 'compiler/src/ast/tests.rs')
| -rw-r--r-- | compiler/src/ast/tests.rs | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/compiler/src/ast/tests.rs b/compiler/src/ast/tests.rs index c6d8c38..8905427 100644 --- a/compiler/src/ast/tests.rs +++ b/compiler/src/ast/tests.rs | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | use std::f64; | 1 | use std::{fmt::Debug, iter::repeat_n, rc::Rc}; |
| 2 | use std::fmt::Debug; | ||
| 3 | use std::iter::repeat_n; | ||
| 4 | use std::rc::Rc; | ||
| 5 | 2 | ||
| 6 | use self::E::*; | 3 | use crate::{ |
| 7 | use super::{Error, Parser, parser::MAX_DEPTH}; | 4 | ast::{Atom, Error, Expr, Parser, parser::MAX_DEPTH, tests::E::*}, |
| 8 | use crate::ast::{Atom, Expr}; | 5 | lex::Token::{self, *}, |
| 9 | use crate::lexer::Token; | 6 | span::{Pos, Span, Spanned}, |
| 10 | use crate::lexer::Token::*; | 7 | }; |
| 11 | use crate::span::{Pos, Span, Spanned}; | ||
| 12 | 8 | ||
| 13 | #[derive(Debug, PartialEq)] | 9 | #[derive(Debug, PartialEq)] |
| 14 | enum E { | 10 | enum E { |
