mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
make an inline expect triggered by a top-level expect work
This commit is contained in:
parent
39a90ec32d
commit
41ad915c35
5 changed files with 84 additions and 40 deletions
|
@ -273,7 +273,7 @@ fn run_expect_pure<'a, W: std::io::Write>(
|
|||
let mut offset = ExpectSequence::START_OFFSET;
|
||||
|
||||
for _ in 0..sequence.count_failures() {
|
||||
offset += render_expect_failure(
|
||||
offset = render_expect_failure(
|
||||
writer,
|
||||
&renderer,
|
||||
arena,
|
||||
|
@ -731,5 +731,9 @@ pub fn expect_mono_module_to_dylib<'a>(
|
|||
);
|
||||
}
|
||||
|
||||
if let Ok(path) = std::env::var("ROC_DEBUG_LLVM") {
|
||||
env.module.print_to_file(path).unwrap();
|
||||
}
|
||||
|
||||
llvm_module_to_dylib(env.module, &target, opt_level).map(|lib| (lib, expects, layout_interner))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue