Refactor: Move tester module to utils

This commit is contained in:
Michael Schimmel
2026-02-18 18:09:33 +01:00
parent b6d1d41c8b
commit 193414c1da
6 changed files with 12 additions and 9 deletions
+2 -2
View File
@@ -231,7 +231,7 @@ impl CompilerApp {
}
fn run_all_tests(&mut self) {
use myc::ast::tester;
use myc::utils::tester;
let results = tester::run_functional_tests();
let mut log = String::from("FUNCTIONAL TEST RESULTS:\n\n");
let mut passed = 0;
@@ -244,7 +244,7 @@ impl CompilerApp {
}
fn run_benchmarks(&mut self, update: bool) {
use myc::ast::tester;
use myc::utils::tester;
if cfg!(debug_assertions) && !update {
self.output_log = String::from("⚠️ WARNING: Benchmarks in Debug mode are inaccurate!\nUse Release build for real measurements.\n\n");
} else {