Fix Alloc error in raise_3 test
@@ -487,19 +487,22 @@ fn with_mfa_with_positive_line_raises() {
#[test]
fn with_mfa_with_file_and_line_raises() {
- with_process_arc(|arc_process| {
TestRunner::new(Config::with_source_file(file!()))
.run(
- &(
+ &strategy::process().prop_flat_map(|arc_process| {
+ (
+ Just(arc_process.clone()),
class_variant_and_term(),
strategy::term(arc_process.clone()),
strategy::term::atom(),
strategy::term::atom(),
strategy::term::function::arity_or_arguments(arc_process.clone()),
strategy::term::charlist(arc_process.clone()),
- strategy::term::integer::positive(arc_process.clone()),
- ),
+ strategy::term::integer::positive(arc_process),
+ )
+ }),
|(
+ arc_process,
(class_variant, class),
reason,
module,
@@ -535,7 +538,6 @@ fn with_mfa_with_file_and_line_raises() {
},
)
.unwrap();
- });
}
fn class() -> BoxedStrategy<Term> {
