fix test hanging forever

This commit is contained in:
Folkert 2021-01-25 13:20:40 +01:00
parent 171e0358f3
commit 0166a4d915
7 changed files with 66 additions and 17 deletions

View file

@ -1,4 +1,4 @@
use crate::llvm::build_dict::dict_len;
use crate::llvm::build_dict::{dict_len, dict_empty};
use crate::llvm::build_hash::hash;
use crate::llvm::build_list::{
allocate_list, empty_list, empty_polymorphic_list, list_append, list_concat, list_contains,
@ -3854,7 +3854,14 @@ fn run_low_level<'a, 'ctx, 'env>(
hash(env, value, layout)
}
DictSize => dict_len(env, scope, args[0]),
DictSize => {
debug_assert_eq!(args.len(), 1);
dict_len(env, scope, args[0])
}
DictEmpty => {
debug_assert_eq!(args.len(), 0);
dict_empty(env, scope)
}
}
}