mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 20:28:02 +00:00
Fix failing tests, remove unnecessary NONE bitflag
This commit is contained in:
parent
ec23cc56ea
commit
3a6c622727
4 changed files with 18 additions and 15 deletions
|
@ -24,7 +24,7 @@ succeed = \x -> Identity(x)
|
|||
|
||||
with_default = Res.with_default
|
||||
|
||||
yay : Res.Res {} err
|
||||
yay : Res.Res {} _
|
||||
yay =
|
||||
ok = Ok("foo")
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ succeed = \x -> Identity(x)
|
|||
|
||||
with_default = Res.with_default
|
||||
|
||||
yay : Res.Res {} err
|
||||
yay : Res.Res {} _
|
||||
yay =
|
||||
ok = Ok("foo")
|
||||
|
||||
|
|
|
@ -271,11 +271,13 @@ fn load_fixture(
|
|||
);
|
||||
}
|
||||
|
||||
assert!(loaded_module
|
||||
.type_problems
|
||||
.remove(&home)
|
||||
.unwrap_or_default()
|
||||
.is_empty());
|
||||
assert_eq!(
|
||||
loaded_module
|
||||
.type_problems
|
||||
.remove(&home)
|
||||
.unwrap_or_default(),
|
||||
Vec::new()
|
||||
);
|
||||
|
||||
let expected_name = loaded_module
|
||||
.interns
|
||||
|
@ -433,11 +435,13 @@ fn module_with_deps() {
|
|||
loaded_module.can_problems.remove(&home).unwrap_or_default(),
|
||||
Vec::new()
|
||||
);
|
||||
assert!(loaded_module
|
||||
.type_problems
|
||||
.remove(&home)
|
||||
.unwrap_or_default()
|
||||
.is_empty(),);
|
||||
assert_eq!(
|
||||
loaded_module
|
||||
.type_problems
|
||||
.remove(&home)
|
||||
.unwrap_or_default(),
|
||||
Vec::new()
|
||||
);
|
||||
|
||||
let mut def_count = 0;
|
||||
let declarations = loaded_module.declarations_by_id.remove(&home).unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue