Fix Alloc error in setelement/3 test
@@ -33,14 +33,16 @@ fn without_tuple_errors_badarg() {
#[test]
fn with_tuple_without_valid_index_errors_badarg() {
- 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::tuple::without_index(arc_process.clone()),
strategy::term(arc_process.clone()),
- ),
- |((tuple, index), element)| {
+ )
+ }),
+ |(arc_process, (tuple, index), element)| {
let boxed_tuple: Boxed<Tuple> = tuple.try_into().unwrap();
prop_assert_badarg!(
@@ -56,7 +58,6 @@ fn with_tuple_without_valid_index_errors_badarg() {
},
)
.unwrap();
- });
}
#[test]
