This commit is contained in:
eiei114 2023-06-25 17:14:02 +09:00
parent 14ac58f781
commit f43e346897
No known key found for this signature in database
GPG key ID: C740FAA53EE7B995
5 changed files with 656 additions and 554 deletions

View file

@ -93,6 +93,7 @@ pub fn get_values<'a>(
mod test {
use indoc::indoc;
use pretty_assertions::assert_eq;
use roc_error_macros::internal_error;
use roc_gen_llvm::{llvm::build::LlvmBackendMode, run_roc::RocCallResult, run_roc_dylib};
use roc_load::{ExecutionMode, LoadConfig, LoadMonomorphizedError, Threading};
use roc_packaging::cache::RocCacheDir;
@ -136,9 +137,9 @@ mod test {
) {
Ok(m) => m,
Err(LoadMonomorphizedError::ErrorModule(m)) => {
panic!("{:?}", (m.can_problems, m.type_problems))
internal_error!("{:?}", (m.can_problems, m.type_problems))
}
Err(e) => panic!("{e:?}"),
Err(e) => internal_error!("{e:?}"),
};
let mut loaded = loaded;