Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
Fixed dynamic field tests.
  • Loading branch information
LoopyAshy committed Oct 28, 2022
1 parent ef8f62b commit 3fd1072
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ path = "test.rs"

[features]
default = ["full"]
full = ["rune-modules/full"]
dynamic_fields = ["rune/dynamic_fields"]
full = ["rune-modules/full", "rune/dynamic_fields"]

[dependencies]
thiserror = "1.0.30"
Expand Down
16 changes: 8 additions & 8 deletions tests/tests/dynamic_fields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ mod dynamic_fields_tests {
context.install(&module).expect("Expect module");

let mut options = Options::default();
options.dynamic_fields = true;
options.dynamic_fields(true);

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

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

let mut options = Options::default();
options.dynamic_fields = true;
options.dynamic_fields(true);

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

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

let mut options = Options::default();
options.dynamic_fields = true;
options.dynamic_fields(true);

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

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

let mut options = Options::default();
options.dynamic_fields = true;
options.dynamic_fields(true);

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

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

let mut options = Options::default();
options.dynamic_fields = true;
options.dynamic_fields(true);

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

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

let mut options = Options::default();
options.dynamic_fields = true;
options.dynamic_fields(true);

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

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

let mut options = Options::default();
options.dynamic_fields = true;
options.dynamic_fields(true);

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

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

let mut options = Options::default();
options.dynamic_fields = true;
options.dynamic_fields(true);

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

Expand Down

0 comments on commit 3fd1072

Please sign in to comment.