Fix Alloc Err in without_key_puts_new_value
use super::*;
+use proptest::strategy::Just;
+
use liblumen_alloc::erts::term::atom_unchecked;
#[test]
fn without_key_puts_new_value() {
- with_process_arc(|arc_process| {
TestRunner::new(Config::with_source_file(file!()))
.run(
- &(
+ &strategy::process().prop_flat_map(|arc_process| {
+ (
+ Just(arc_process.clone()),
strategy::term(arc_process.clone()),
strategy::term(arc_process.clone()),
- ),
- |(key, value)| {
+ )
+ }),
+ |(arc_process, key, value)| {
let empty_map = arc_process.map_from_slice(&[]).unwrap();
let updated_map = arc_process.map_from_slice(&[(key, value)]).unwrap();
prop_assert_eq!(
@@ -23,7 +27,6 @@ fn without_key_puts_new_value() {
},
)
.unwrap();
- });
}
#[test]
