Working on a testing method

This commit is contained in:
2025-05-26 22:28:31 +02:00
parent b61518de00
commit c8e72dbba8
10 changed files with 130 additions and 10 deletions

View File

@ -66,7 +66,7 @@ impl FileGenerator {
}
pub fn a<T: ToString>(&mut self, indent: usize, content: T) {
let line = " ".repeat(indent) + &content.to_string();
let line = " ".repeat(indent) + &content.to_string();
self.content.push(line);
}

View File

@ -13,10 +13,7 @@ pub use tokenizer::{tokenize, Token, TokenError, TokenPosition, TokenType};
#[cfg(test)]
mod test {
use crate::{
compile::{Compile, CompileContext},
targets::{self, rust::RustCompiler},
};
use crate::targets::{self, rust::RustCompiler};
#[cfg(test)]
#[ctor::ctor]

View File

@ -1,6 +1,6 @@
use anyhow::Result;
use log::{debug, trace};
use std::{collections::HashMap, error::Error, fmt::Display, sync::Arc};
use std::{error::Error, fmt::Display, sync::Arc};
use crate::{Token, TokenPosition, TokenType};