Skip to content

Commit 3fd1072

Browse files
committed
Fixed tests
Fixed dynamic field tests.
1 parent ef8f62b commit 3fd1072

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

tests/Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ path = "test.rs"
1212

1313
[features]
1414
default = ["full"]
15-
full = ["rune-modules/full"]
16-
dynamic_fields = ["rune/dynamic_fields"]
15+
full = ["rune-modules/full", "rune/dynamic_fields"]
1716

1817
[dependencies]
1918
thiserror = "1.0.30"

tests/tests/dynamic_fields.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ mod dynamic_fields_tests {
9797
context.install(&module).expect("Expect module");
9898

9999
let mut options = Options::default();
100-
options.dynamic_fields = true;
100+
options.dynamic_fields(true);
101101

102102
let mut vm = vm_with_options(&context, &mut sources, &mut diagnostics, &options).expect("program to compile successfully");
103103

@@ -169,7 +169,7 @@ mod dynamic_fields_tests {
169169
context.install(&module).expect("Expect module");
170170

171171
let mut options = Options::default();
172-
options.dynamic_fields = true;
172+
options.dynamic_fields(true);
173173

174174
let mut vm = vm_with_options(&context, &mut sources, &mut diagnostics, &options).expect("program to compile successfully");
175175

@@ -242,7 +242,7 @@ mod dynamic_fields_tests {
242242
context.install(&module).expect("Expect module");
243243

244244
let mut options = Options::default();
245-
options.dynamic_fields = true;
245+
options.dynamic_fields(true);
246246

247247
let mut vm = vm_with_options(&context, &mut sources, &mut diagnostics, &options).expect("program to compile successfully");
248248

@@ -313,7 +313,7 @@ mod dynamic_fields_tests {
313313
context.install(&module).expect("Expect module");
314314

315315
let mut options = Options::default();
316-
options.dynamic_fields = true;
316+
options.dynamic_fields(true);
317317

318318
let mut vm = vm_with_options(&context, &mut sources, &mut diagnostics, &options).expect("program to compile successfully");
319319

@@ -408,7 +408,7 @@ mod dynamic_fields_tests {
408408
context.install(&module).expect("Expect module");
409409

410410
let mut options = Options::default();
411-
options.dynamic_fields = true;
411+
options.dynamic_fields(true);
412412

413413
let mut vm = vm_with_options(&context, &mut sources, &mut diagnostics, &options).expect("program to compile successfully");
414414

@@ -480,7 +480,7 @@ mod dynamic_fields_tests {
480480
context.install(&module).expect("Expect module");
481481

482482
let mut options = Options::default();
483-
options.dynamic_fields = true;
483+
options.dynamic_fields(true);
484484

485485
let mut vm = vm_with_options(&context, &mut sources, &mut diagnostics, &options).expect("program to compile successfully");
486486

@@ -553,7 +553,7 @@ mod dynamic_fields_tests {
553553
context.install(&module).expect("Expect module");
554554

555555
let mut options = Options::default();
556-
options.dynamic_fields = true;
556+
options.dynamic_fields(true);
557557

558558
let mut vm = vm_with_options(&context, &mut sources, &mut diagnostics, &options).expect("program to compile successfully");
559559

@@ -624,7 +624,7 @@ mod dynamic_fields_tests {
624624
context.install(&module).expect("Expect module");
625625

626626
let mut options = Options::default();
627-
options.dynamic_fields = true;
627+
options.dynamic_fields(true);
628628

629629
let mut vm = vm_with_options(&context, &mut sources, &mut diagnostics, &options).expect("program to compile successfully");
630630

0 commit comments

Comments
 (0)