Refactor: Move tester module to utils
This commit is contained in:
+2
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user