Fix AllocErr in is_record_3 test
@@ -4,14 +4,15 @@ use proptest::strategy::Strategy;
#[test]
fn without_tuple_returns_false() {
- with_process_arc(|arc_process| {
TestRunner::new(Config::with_source_file(file!()))
.run(
- &(
+ &strategy::process().prop_flat_map(|arc_process| {
+ (
strategy::term::is_not_tuple(arc_process.clone()),
strategy::term::atom(),
- strategy::term::is_integer(arc_process.clone()),
- ),
+ strategy::term::is_integer(arc_process),
+ )
+ }),
|(tuple, record_tag, size)| {
prop_assert_eq!(
erlang::is_record_3(tuple, record_tag, size),
@@ -22,7 +23,6 @@ fn without_tuple_returns_false() {
},
)
.unwrap();
- });
}
#[test]
