Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

Commit 04fe93b

Browse files
committed
Add empty environment to test closures
1 parent 3cfd654 commit 04fe93b

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

lumen_runtime/src/otp/erlang/tests/are_equal_after_conversion_2/with_function_left.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ fn with_same_value_function_right_returns_true() {
6767
arity,
6868
});
6969
let left_term = arc_process
70-
.closure(creator, left_module_function_arity, code)
70+
.closure(creator, left_module_function_arity, code, vec![])
7171
.unwrap();
7272

7373
let right_module_function_arity = Arc::new(ModuleFunctionArity {
@@ -76,7 +76,7 @@ fn with_same_value_function_right_returns_true() {
7676
arity,
7777
});
7878
let right_term = arc_process
79-
.closure(creator, right_module_function_arity, code)
79+
.closure(creator, right_module_function_arity, code, vec![])
8080
.unwrap();
8181

8282
(left_term, right_term)
@@ -118,7 +118,7 @@ fn with_different_function_right_returns_false() {
118118
Ok(())
119119
};
120120
let left_term = arc_process
121-
.closure(creator, left_module_function_arity, left_code)
121+
.closure(creator, left_module_function_arity, left_code, vec![])
122122
.unwrap();
123123

124124
let right_module_function_arity = Arc::new(ModuleFunctionArity {
@@ -132,7 +132,7 @@ fn with_different_function_right_returns_false() {
132132
Ok(())
133133
};
134134
let right_term = arc_process
135-
.closure(creator, right_module_function_arity, right_code)
135+
.closure(creator, right_module_function_arity, right_code, vec![])
136136
.unwrap();
137137

138138
(left_term, right_term)

lumen_runtime/src/otp/erlang/tests/are_exactly_equal_2/with_function_left.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ fn with_same_value_function_right_returns_true() {
5959
arity,
6060
});
6161
let left_term = arc_process
62-
.closure(creator, left_module_function_arity, code)
62+
.closure(creator, left_module_function_arity, code, vec![])
6363
.unwrap();
6464

6565
let right_module_function_arity = Arc::new(ModuleFunctionArity {
@@ -68,7 +68,7 @@ fn with_same_value_function_right_returns_true() {
6868
arity,
6969
});
7070
let right_term = arc_process
71-
.closure(creator, right_module_function_arity, code)
71+
.closure(creator, right_module_function_arity, code, vec![])
7272
.unwrap();
7373

7474
(left_term, right_term)
@@ -106,7 +106,7 @@ fn with_different_function_right_returns_false() {
106106
Ok(())
107107
};
108108
let left_term = arc_process
109-
.closure(creator, left_module_function_arity, left_code)
109+
.closure(creator, left_module_function_arity, left_code, vec![])
110110
.unwrap();
111111

112112
let right_module_function_arity = Arc::new(ModuleFunctionArity {
@@ -120,7 +120,7 @@ fn with_different_function_right_returns_false() {
120120
Ok(())
121121
};
122122
let right_term = arc_process
123-
.closure(creator, right_module_function_arity, right_code)
123+
.closure(creator, right_module_function_arity, right_code, vec![])
124124
.unwrap();
125125

126126
(left_term, right_term)

lumen_runtime/src/otp/erlang/tests/are_exactly_not_equal_2/with_function_left.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fn with_same_value_function_right_returns_false() {
6262
arity,
6363
});
6464
let left_term = arc_process
65-
.closure(creator, left_module_function_arity, code)
65+
.closure(creator, left_module_function_arity, code, vec![])
6666
.unwrap();
6767

6868
let right_module_function_arity = Arc::new(ModuleFunctionArity {
@@ -71,7 +71,7 @@ fn with_same_value_function_right_returns_false() {
7171
arity,
7272
});
7373
let right_term = arc_process
74-
.closure(creator, right_module_function_arity, code)
74+
.closure(creator, right_module_function_arity, code, vec![])
7575
.unwrap();
7676

7777
(left_term, right_term)
@@ -110,7 +110,7 @@ fn with_different_function_right_returns_true() {
110110
Ok(())
111111
};
112112
let left_term = arc_process
113-
.closure(creator, left_module_function_arity, left_code)
113+
.closure(creator, left_module_function_arity, left_code, vec![])
114114
.unwrap();
115115

116116
let right_module_function_arity = Arc::new(ModuleFunctionArity {
@@ -124,7 +124,7 @@ fn with_different_function_right_returns_true() {
124124
Ok(())
125125
};
126126
let right_term = arc_process
127-
.closure(creator, right_module_function_arity, right_code)
127+
.closure(creator, right_module_function_arity, right_code, vec![])
128128
.unwrap();
129129

130130
(left_term, right_term)

lumen_runtime/src/otp/erlang/tests/are_not_equal_after_conversion_2/with_function_left.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ fn with_same_value_function_right_returns_false() {
6565
arity,
6666
});
6767
let left_term = arc_process
68-
.closure(creator, left_module_function_arity, code)
68+
.closure(creator, left_module_function_arity, code, vec![])
6969
.unwrap();
7070

7171
let right_module_function_arity = Arc::new(ModuleFunctionArity {
@@ -74,7 +74,7 @@ fn with_same_value_function_right_returns_false() {
7474
arity,
7575
});
7676
let right_term = arc_process
77-
.closure(creator, right_module_function_arity, code)
77+
.closure(creator, right_module_function_arity, code, vec![])
7878
.unwrap();
7979

8080
(left_term, right_term)
@@ -116,7 +116,7 @@ fn with_different_function_right_returns_true() {
116116
Ok(())
117117
};
118118
let left_term = arc_process
119-
.closure(creator, left_module_function_arity, left_code)
119+
.closure(creator, left_module_function_arity, left_code, vec![])
120120
.unwrap();
121121

122122
let right_module_function_arity = Arc::new(ModuleFunctionArity {
@@ -130,7 +130,7 @@ fn with_different_function_right_returns_true() {
130130
Ok(())
131131
};
132132
let right_term = arc_process
133-
.closure(creator, right_module_function_arity, right_code)
133+
.closure(creator, right_module_function_arity, right_code, vec![])
134134
.unwrap();
135135

136136
(left_term, right_term)

lumen_runtime/src/otp/erlang/tests/strategy/term.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ pub fn function(arc_process: Arc<ProcessControlBlock>) -> BoxedStrategy<Term> {
9999
};
100100

101101
arc_process
102-
.closure(creator, module_function_arity, code)
102+
.closure(creator, module_function_arity, code, vec![])
103103
.unwrap()
104104
})
105105
.boxed()

0 commit comments

Comments
 (0)