mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
Fix test_uniq_load
This commit is contained in:
parent
da328f9e78
commit
b3b37db2c0
1 changed files with 5 additions and 1 deletions
|
@ -22,6 +22,7 @@ mod test_uniq_load {
|
||||||
use roc_collections::all::MutMap;
|
use roc_collections::all::MutMap;
|
||||||
use roc_constrain::module::SubsByModule;
|
use roc_constrain::module::SubsByModule;
|
||||||
use roc_load::file::LoadedModule;
|
use roc_load::file::LoadedModule;
|
||||||
|
use roc_module::ident::ModuleName;
|
||||||
use roc_module::symbol::{Interns, ModuleId};
|
use roc_module::symbol::{Interns, ModuleId};
|
||||||
use roc_types::pretty_print::{content_to_string, name_all_type_vars};
|
use roc_types::pretty_print::{content_to_string, name_all_type_vars};
|
||||||
use roc_types::subs::Subs;
|
use roc_types::subs::Subs;
|
||||||
|
@ -66,7 +67,10 @@ mod test_uniq_load {
|
||||||
.get_name(loaded_module.module_id)
|
.get_name(loaded_module.module_id)
|
||||||
.expect("Test ModuleID not found in module_ids");
|
.expect("Test ModuleID not found in module_ids");
|
||||||
|
|
||||||
assert_eq!(expected_name, &InlinableString::from(module_name));
|
// App module names are hardcoded and not based on anything user-specified
|
||||||
|
if expected_name != ModuleName::APP {
|
||||||
|
assert_eq!(expected_name, &InlinableString::from(module_name));
|
||||||
|
}
|
||||||
|
|
||||||
loaded_module
|
loaded_module
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue