Fix Alloc error in is_equal_or_less_than_2 test
@@ -25,12 +25,13 @@ fn without_list_or_bitstring_returns_false() {
#[test]
fn with_list_or_bitstring_right_returns_true() {
- with_process_arc(|arc_process| {
TestRunner::new(Config::with_source_file(file!()))
.run(
- &strategy::term(arc_process.clone())
- .prop_filter("Right cannot be a list or bitstring", |right| {
+ &strategy::process().prop_flat_map(|arc_process| {
+ strategy::term(arc_process.clone())
+ .prop_filter("Right must be a list or bitstring", |right| {
right.is_list() || right.is_bitstring()
+ })
}),
|right| {
let left = Term::NIL;
@@ -41,5 +42,4 @@ fn with_list_or_bitstring_right_returns_true() {
},
)
.unwrap();
- });
}
