mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
split test_utils
This commit is contained in:
parent
972b254ebd
commit
f9771a9983
12 changed files with 70 additions and 47 deletions
|
@ -40,7 +40,7 @@ roc_problem = { path = "../problem" }
|
|||
roc_region = { path = "../region" }
|
||||
roc_solve_problem = { path = "../solve_problem" }
|
||||
ven_pretty = { path = "../../vendor/pretty" }
|
||||
roc_test_utils = { path = "../../test_utils" }
|
||||
roc_test_utils_dir = { path = "../../test_utils_dir" }
|
||||
|
||||
indoc.workspace = true
|
||||
insta.workspace = true
|
||||
|
|
|
@ -28,6 +28,7 @@ mod test_reporting {
|
|||
use roc_reporting::report::{RocDocAllocator, RocDocBuilder};
|
||||
use roc_solve::FunctionKind;
|
||||
use roc_solve_problem::TypeError;
|
||||
use roc_test_utils_dir::TmpDir;
|
||||
use roc_types::subs::Subs;
|
||||
use std::path::PathBuf;
|
||||
|
||||
|
@ -115,7 +116,7 @@ mod test_reporting {
|
|||
// We can't have all tests use "tmp" because tests run in parallel,
|
||||
// so append the test name to the tmp path.
|
||||
let tmp = format!("tmp/{subdir}");
|
||||
let dir = roc_test_utils::TmpDir::new(&tmp);
|
||||
let dir = TmpDir::new(&tmp);
|
||||
|
||||
let filename = PathBuf::from("Test.roc");
|
||||
let file_path = dir.path().join(filename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue