mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Update tests
This commit is contained in:
parent
e019ec6736
commit
6e5ee5562e
3 changed files with 29 additions and 20 deletions
|
@ -3,6 +3,7 @@ use std::path::PathBuf;
|
|||
|
||||
use bumpalo::Bump;
|
||||
use roc_packaging::cache::RocCacheDir;
|
||||
use roc_solve::module::{SolveConfig, SolveOutput};
|
||||
use ven_pretty::DocAllocator;
|
||||
|
||||
use roc_can::{
|
||||
|
@ -418,18 +419,27 @@ fn check_derived_typechecks_and_golden(
|
|||
roc_debug_flags::ROC_PRINT_UNIFICATIONS_DERIVED,
|
||||
std::env::set_var(roc_debug_flags::ROC_PRINT_UNIFICATIONS, "1")
|
||||
);
|
||||
let (mut solved_subs, _, problems, _) = roc_solve::module::run_solve(
|
||||
test_module,
|
||||
|
||||
let solve_config = SolveConfig {
|
||||
home: test_module,
|
||||
constraints: &constraints,
|
||||
root_constraint: constr,
|
||||
types,
|
||||
&constraints,
|
||||
constr,
|
||||
pending_derives: Default::default(),
|
||||
exposed_by_module: &exposed_for_module.exposed_by_module,
|
||||
derived_module: Default::default(),
|
||||
};
|
||||
|
||||
let SolveOutput {
|
||||
subs: mut solved_subs,
|
||||
errors: problems,
|
||||
..
|
||||
} = roc_solve::module::run_solve(
|
||||
solve_config,
|
||||
RigidVariables::default(),
|
||||
test_subs,
|
||||
Default::default(),
|
||||
abilities_store,
|
||||
Default::default(),
|
||||
&exposed_for_module.exposed_by_module,
|
||||
Default::default(),
|
||||
);
|
||||
dbg_do!(
|
||||
roc_debug_flags::ROC_PRINT_UNIFICATIONS_DERIVED,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue