From 3fd1072fc70d6eb50f8da34ec5ed191fc272a2d3 Mon Sep 17 00:00:00 2001 From: Ashy Date: Fri, 28 Oct 2022 14:22:12 +0100 Subject: [PATCH] Fixed tests Fixed dynamic field tests. --- tests/Cargo.toml | 3 +-- tests/tests/dynamic_fields.rs | 16 ++++++++-------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/tests/Cargo.toml b/tests/Cargo.toml index d7253e202..0e04640ff 100644 --- a/tests/Cargo.toml +++ b/tests/Cargo.toml @@ -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" diff --git a/tests/tests/dynamic_fields.rs b/tests/tests/dynamic_fields.rs index 86f8c20f4..a1b9ea36b 100644 --- a/tests/tests/dynamic_fields.rs +++ b/tests/tests/dynamic_fields.rs @@ -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"); @@ -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"); @@ -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"); @@ -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"); @@ -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"); @@ -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"); @@ -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"); @@ -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");